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
F102744518: D37534.diff
Sat, Nov 16, 3:10 PM
Unknown Object (File)
Oct 4 2024, 1:26 AM
Unknown Object (File)
Sep 28 2024, 9:30 PM
Unknown Object (File)
Sep 28 2024, 9:23 PM
Unknown Object (File)
Sep 28 2024, 4:21 PM
Unknown Object (File)
Sep 27 2024, 6:25 PM
Unknown Object (File)
Sep 24 2024, 6:49 PM
Unknown Object (File)
Sep 24 2024, 6:44 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