From nobody Wed Apr 8 14:04:54 2026 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4frPvq2PQfz6YBR3 for ; Wed, 08 Apr 2026 14:04:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4frPvp70kcz3n9g for ; Wed, 08 Apr 2026 14:04:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775657095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n34O74jlpzQBQYEnevX/D2ib1YuYwA4buRA5aK3i6Ec=; b=XX+5cnBiYPZEqm2zS22LhPKS2+XifI4m9bDvItXAhiDv/q75HxntnT4namSPyvWHizvtHG 80vZBXtILmKDvemqyhCN7SSQ8o73lzyQH1f1ggQJtEk3Ra5KEDbflS6meGdXzR9yULL6zN yd6fgyCrf4wf1UIfQwJI/c1lLARdu4IeR0AlFp4eTY7ML0+TT0LL/MPfI7Uxx9BQ/x+0Lv U/cOTqMQgeRv3fPM5hQRpBJa/BLQkYEJ2fz/J/8THt0L4bItCMND/nHmixcxmQNp1MWLdE NS0UKJ7mwBuoaU0RjUOUVguwPhyitW2616UqjWyYm5yNLEFyrlVOwxlGGGeDKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775657095; a=rsa-sha256; cv=none; b=mB+TbM/L+g9zwQ0w1oiUny2cLae4u8vfDg+YE5gcBx4WRl5Xb+wy09w4E8soG8UGMaXVh0 cimHhUomZ6OowZ5Qjq7w2eRTh9UKEJ2iagdg2cmew6MflGYdAdBU3+B0w0AOny8byFtriF qnKMktG43amYHmizcyrvVY0jdDhL2EV6xSI814UDpr/qoLxTPiLJCf2VoEKjbh2VmzJGIc NYe2a4FDt04CFHEHBiXXLi0nSnTsvll9EdZusld2uETxcsiNUIpJbCNCbpD9ZnD4L6eSRO /A4lpxBWXLxy6T+FetuettFgwl58wLnsZu4M8pt8kyy5+nBcQckk4p5xGcMpOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775657095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n34O74jlpzQBQYEnevX/D2ib1YuYwA4buRA5aK3i6Ec=; b=KOSowi1NkLbSHK7a+/9TDAbgE+YQOGErHHB5KmIKTeXVdHhKuHTeJIwqDDiXPFy6QDPBHp j1f0C5YXtnfUQQZuNMBK3r5YYi6LTE7lBHRHRSEEBLC03qIpWdNl4o4cdGjqfEIA8uDch2 8Su57kkzcEFpTXXG22b7ObYqhz04xM741eh+DMC98H9pZYGuqd7DimRKD5AyShD0vgp1F0 LdMbY9D9dJ4DgSu9pRTMONUa4pGL2D6u91vZ0ExCyNUHQkNHZjzE1wF/IbNPWjDR9Q8w1w Srkz4l7cnwD4kyFmZmNqptQQE5r0WR7/falskMB1S4aG4yNvT7zkcx8I/DIj8Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4frPvp6Z5kzTjn for ; Wed, 08 Apr 2026 14:04:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 638E4sxg007749 for ; Wed, 8 Apr 2026 14:04:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 638E4sCp007748 for bugs@FreeBSD.org; Wed, 8 Apr 2026 14:04:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 292811] sys/kern/imgact_elf.c:2722:18: error: variable 'structsize' is uninitialized when passed as a const pointer argument here Date: Wed, 08 Apr 2026 14:04:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 16.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D292811 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D8a68c2509c00ae0dbeab64064bb600cfa= c787a73 commit 8a68c2509c00ae0dbeab64064bb600cfac787a73 Author: Mark Johnston AuthorDate: 2026-04-08 04:19:56 +0000 Commit: Mark Johnston CommitDate: 2026-04-08 14:04:29 +0000 imgact_elf: Unconditionally initialize a variable in a note handler In the sb =3D=3D NULL case, we are computing the size of the note using= a dummy sbuf drain handler which counts bytes and discards the contents of the buffer, so the fact that "structsize" is uninitialized doesn't matter. But, the compiler may complain about this, so we might as well just initialize it unconditionally to silence the warning, as other handlers already do. PR: 292811 MFC after: 1 week sys/kern/imgact_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=