From nobody Thu Jan 29 19:14:33 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 4f282x29Fqz6PmXp for ; Thu, 29 Jan 2026 19:14:33 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f282x1Sc8z3sCW for ; Thu, 29 Jan 2026 19:14:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769714073; 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=Jdv0AomXg64ZP3z4BqUaMiu6lGgGEeGQsTBLSEngBCs=; b=YoV+G1sS8FA0wzsy6PB40rv+XhqvzFXBxhK3jDXAD2Vqd1N8AROpvShhVXebOSRMBZKMWa zInq85ZueDEzXkjw0u506a6tKLwescmd3FNdbX68P2GrEQsi/QGZvGS+fi1OQaAovdMra6 mzQoOX/SWjZd5oFvwLMRS6m4GFLNKpafez1t/E5Oy3sSfC/JxNk7TVapVuKiMyysKCx8Ij k9ATUISFqToE35O2yz1qLSxdguSpkakQ9h2+4O1ul6dLNqYnb+6IIoF6M2XUnJsMT1zuMO tx9QqIVhPofxT+bJOxo/IX+6IEnh52TgVASyK/9O2kcA8COMdv9TVpWDyaP6+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769714073; a=rsa-sha256; cv=none; b=AmGQgoS7bHoWb8scBKo7xZIQ8KnhP9QavYiBsBLD/hBod+zwuFSSn0GC5/GonAZAdLsjR3 rFiWT4CFkzOwC8Jx0he0OOzYVsU028XYEA3oLanWsGwwn0JjaqZ0n/J7McghHvjH9AoGv3 +64A+WIlgzIoDchQkBaOLl1MWtBQrlsRLwIaIyWRI898RXdYNJBA3uY618VhNjHQ5THJ8r zGz6+PL19Q/PX0bbSLeCeu0laZmH2lZawvzRVA2Bl81HjP1Y0zgjUHjm/3a17xTXGSz4K3 87lbXj3J+tGLDpLdmvGgYPICvRA/Z8KtIrwUtQ7HCrzCZv3DGol38aBZXFCN8g== 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=1769714073; 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=Jdv0AomXg64ZP3z4BqUaMiu6lGgGEeGQsTBLSEngBCs=; b=lggch4x+qhuW7frJkORUFapHIsfqCKbAKY5i/krKEFXBlxUC4DxGvIcI2B/fkB7M2I+1jE k9pGpfrY3RwvLWM7Ry00pKXkkbalvApjNNrnkV7+vIQ5Hx2UsdLodDDCNeStInaw0fTo66 Pl3Ts3Zsr58W1hUNDYzDOj5QnXof7z3oF/EhTv3q5I7KIohUjBxDltxKnn8cXgsZf0DSM8 epTkcCaqXO2IiJA3JSWYyhOiv6RBIFNqJ22EOmzldfJszKVaA0GE6gNl0/XV55l1kY0Uar YfBKLRP5VKgwM2bYpzrQNUM4EB6Qnscy2wztgJ2rhRJF+kEHYzaZiya/cTHfMw== 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 4f282x13yDzrXS for ; Thu, 29 Jan 2026 19:14:33 +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 60TJEXWZ067394 for ; Thu, 29 Jan 2026 19:14:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 60TJEXgG067393 for bugs@FreeBSD.org; Thu, 29 Jan 2026 19:14:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www 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: Thu, 29 Jan 2026 19:14:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: wosch@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 Bug ID: 292811 Summary: sys/kern/imgact_elf.c:2722:18: error: variable 'structsize' is uninitialized when passed as a const pointer argument here Product: Base System Version: 16.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: wosch@FreeBSD.org I tried to run `make buildkernel' with clang21 on macOS. I get the error: --- imgact_elf.o --- sys/kern/imgact_elf.c:2722:18: error: variable 'structsize' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] 2722 | sbuf_bcat(sb, &structsize, sizeof(structsize)); clang21 is right, it is not a good idea to copy an uninitialized local int variable. --=20 You are receiving this mail because: You are the assignee for the bug.=