From nobody Thu Apr 16 16:48:29 2026 X-Original-To: dev-commits-src-all@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 4fxP8y4gPjz6ZDr9 for ; Thu, 16 Apr 2026 16:48:34 +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 4fxP8y1xWpz3WNs for ; Thu, 16 Apr 2026 16:48:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776358114; 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=scyfIX4oUDnVXUUuHS3n12FIoq8t7gzldSJXhfYmoORWF0eDV1OVH1UvP+KH2eq+C73AfU vvI2oqW3a1TK18DNWGNCTvtM0uxvCBd6G/Whi8HS2IPziBSJLjzf9+eObnauEHMgCAPQ4B qPI8fECCAkgiFQzqMA9swqZcn/xqsVohyxFwOka6xy8O/h/5jG5L/6Il2XV3yv9eABILJJ WlWDtv94Txmwnf488Gv+LqNXLzfw2kinchKBCXWCX3FnskSAGA2a8LTUmWfcKvqDJLgA1q 6xUPvzy63pcWwEsFDK+TmEDG7RqAMp2GOamtDrlYnwVj5/Z2yXBO80iLNK079g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776358114; a=rsa-sha256; cv=none; b=n8bm2MEG4LYyef2RdIPC3Hz/2JAurArRpTZyjLfAjeoAIBUbbJJUudgi/TX5pBk7t/jwel LRuYl0cyLMTh9d0YfL39POHR9XzjnZwY9bN5hJEvxIsXgVWr1eVVyeVgI+aTs3/nn0rXnF 3yoE6LmhvTztSXFOdxSjVEzhCvynWpMO5cEvDpucCkWan7aKMXBCseLW78HnJeHBJU1HnE MfWM6XfasFpcruV9l3KSE7nCr+wYh/8LpQGgZtQ6dxNQ1WfANJSZ9k1cTGFydOPmRcy415 jPNql6rpBe3o8XHw/5Zv1vczTeDHnWDJNjdNjPxhbkEW9BUgVXPq+4z7OnWpLg== 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=1776358114; 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=ymFs9ipo3zU0EnG74bI/wtXrwiGSfGq0PtpM4AXZZLwFRpaIwI3N6WOZattBm0y//jABlm h0Gykyp1TOzb7TL44iq7fjUXMH0lOGJqebSU5C1rhL6E8cX3bd34yvakw5w0Ag+mfAVj6q 1xgOXXejGpvPV+L/4v1x/UVhyPWVgboLdGXzWQBagVnpUuO5Dx4KxG3spunqMKc/UxyFly UL3vNKi6zBbTD2Fu50EP8NMUiBbpMJyaojfaxoK8tQFPYvNB6fUGKHVxsWB7S54q7wJDo2 q7EOiSQaTrnj8kIN4PnVzoYTlvjXRwxhGZR48GorCH9Dm8hCoerRBjP5VajH1Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fxP8y0zDjz1bv for ; Thu, 16 Apr 2026 16:48:34 +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: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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);