From nobody Thu Apr 16 16:48:29 2026 X-Original-To: dev-commits-src-branches@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 4fxP8s2V9vz6ZDr7 for ; Thu, 16 Apr 2026 16:48:29 +0000 (UTC) (envelope-from git@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 4fxP8s1qrYz3WfH for ; Thu, 16 Apr 2026 16:48:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776358109; 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; bh=ur22aU1YTenEBOUkfZWiHXG6BSVb2Igo7QvgNFPYDjg=; b=Tq0eaNmYRJE35305BKjKcFYU71fQuzaxOCB6qPcB4xyLkwdOSA1PfXwCT9Ay26FjFreXys sr5+cLyNEhqt8JGtMmipsVKAhq4SkNNAVY9ZrumfgEdmkzjIMOfXkKiB6473y/TeHbq9t1 FUUjjpUWWlpeOdz/6wBkg+DF3+okFm/xtDV186Hx2FJewqW2dJRz/QyhJjslI3uabEYjLz Zoptf0pRWcAqwW2qPhZ653PLZtmf2flPGu9COOBKsWOjL+rptdl7pTUztn8WjzbgEj75W7 x1VxYgzUSR1gna9BKyonh5g7KxmlrMm8SzpI9alK04XRkYLr9FVpZkTVP3yYoQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776358109; a=rsa-sha256; cv=none; b=X62JKBzo8uKiAGlrzV2Yl21eseGc46IA6sI91D5JmM0KCJG38EoLzfGf+HyICM8wj6Gjdw FFS8YncHNo69PhpKnKS/twqo91qBncomobrk4UvgV4+Ump5krwmuGIniwUmTxgThBJ/XP4 8Ad+1faOwVFjij/2H79R7E4DaG0F8OIlH2Vddz1g2wCV1tKIv8tZFPQQi/v52x2mfIgVHn /nYSP7xh3xTwuDN8JdqREVj3+M/9teqc2jUh/YmQKbJj8ir/Mg+ZcTN8jhnFOgaOvEuRc7 FBlyZU/qL7xIgt3t7m4/kkz5flr5nMpd09W9AdaOlSY6SZuTMQgjbM6Ed5gVVA== 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=1776358109; 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; bh=ur22aU1YTenEBOUkfZWiHXG6BSVb2Igo7QvgNFPYDjg=; b=TU+dV+EhD5yhIwvB76H6Fd/DZZ0M8bYvforyWpmCASfNuXy5hQ86cjbas/cCkl0eU6J3oe U3+e3UOu81UFmiKqTTFHyu/KOQB7cZjjpx5Ys4cMngxrgXgGdUnizR1sqQS/syrUX4kHac ZlBZQn3Di/bkpQLH9XqK+kurpKsx8BncKFbXeGWd1GAAwn1kki4xUA2hPqtUNm1Xh5JSKA O54ecfNC9buxC1IJwp2v/aAV8JuDYeGf/BsJ8jeerwZWDhmhvPBQU+90ucf/z6xhmMYRnX 1syHLOcZKZlsypdY64fz68rcMRGfS37IiWw4LdlbRnpqYZdtBC0vlaUwea7nGg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fxP8s16gMz187 for ; Thu, 16 Apr 2026 16:48:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 262f1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 16 Apr 2026 16:48:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 62fbb17e0dd0 - stable/14 - imgact_elf: Unconditionally initialize a variable in a note handler List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 62fbb17e0dd03ece12e3e4baad5d0c65bdbde3da Auto-Submitted: auto-generated Date: Thu, 16 Apr 2026 16:48:29 +0000 Message-Id: <69e112dd.262f1.487abadb@gitrepo.freebsd.org> The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=62fbb17e0dd03ece12e3e4baad5d0c65bdbde3da commit 62fbb17e0dd03ece12e3e4baad5d0c65bdbde3da Author: Mark Johnston AuthorDate: 2026-04-08 04:19:56 +0000 Commit: Mark Johnston CommitDate: 2026-04-16 16:48:20 +0000 imgact_elf: Unconditionally initialize a variable in a note handler In the sb == 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 (cherry picked from commit 8a68c2509c00ae0dbeab64064bb600cfac787a73) --- sys/kern/imgact_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index a71359a929fb..5261e94846a0 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -2685,6 +2685,7 @@ __elfN(note_procstat_auxv)(void *arg, struct sbuf *sb, size_t *sizep) int structsize; p = arg; + structsize = sizeof(Elf_Auxinfo); if (sb == NULL) { size = 0; sb = sbuf_new(NULL, NULL, AT_COUNT * sizeof(Elf_Auxinfo), @@ -2698,7 +2699,6 @@ __elfN(note_procstat_auxv)(void *arg, struct sbuf *sb, size_t *sizep) sbuf_delete(sb); *sizep = size; } else { - structsize = sizeof(Elf_Auxinfo); sbuf_bcat(sb, &structsize, sizeof(structsize)); PHOLD(p); proc_getauxv(curthread, p, sb);