Page MenuHomeFreeBSD

pw: Don't return a pointer to an on-stack buffer from grp_set_passwd.
ClosedPublic

Authored by jhb on Nov 29 2022, 7:50 PM.
Tags
None
Referenced Files
F157110478: D37534.id113621.diff
Mon, May 18, 12:45 PM
Unknown Object (File)
Apr 14 2026, 10:13 PM
Unknown Object (File)
Apr 11 2026, 5:01 PM
Unknown Object (File)
Apr 10 2026, 7:22 PM
Unknown Object (File)
Apr 10 2026, 6:56 AM
Unknown Object (File)
Apr 6 2026, 2:16 PM
Unknown Object (File)
Apr 6 2026, 6:22 AM
Unknown Object (File)
Apr 5 2026, 11:21 AM
Subscribers
None

Details

Summary

Make 'line' static to move it to .bss instead as that pattern is used
elsewhere in pw(8) (e.g. the static buffer in pw_pwcrypt).

Reported by: GCC -Wdangling-pointer

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable