[Bug 292811] sys/kern/imgact_elf.c:2722:18: error: variable 'structsize' is uninitialized when passed as a const pointer argument here

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 06 Apr 2026 07:09:07 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292811

Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giorgitchankvetadze1997@gma
                   |                            |il.com

--- Comment #1 from Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com> ---
Created attachment 269403
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=269403&action=edit
Initialize structsize to 0 in note_procstat_auxv

The attached patch resolves the uninitialized variable warning and prevents
potential stack data leakage into ELF notes.

-- 
You are receiving this mail because:
You are the assignee for the bug.