jcs's openbsd hax
openbsd

Set the initial imsg header len to 0 in imsg_create().

The real value is written in imsg_close() but this way no uninitialized
value is added to the imsg.

CID 554939
OK tb@

claudio 6ebced9d f60b8361

+2 -1
+2 -1
lib/libutil/imsg.c
··· 1 - /* $OpenBSD: imsg.c,v 1.41 2025/06/04 09:08:52 claudio Exp $ */ 1 + /* $OpenBSD: imsg.c,v 1.42 2025/06/16 13:56:11 claudio Exp $ */ 2 2 3 3 /* 4 4 * Copyright (c) 2023 Claudio Jeker <claudio@openbsd.org> ··· 371 371 return (NULL); 372 372 } 373 373 374 + hdr.len = 0; 374 375 hdr.type = type; 375 376 hdr.peerid = id; 376 377 if ((hdr.pid = pid) == 0)