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
Unknown Object (File)
Fri, Jan 24, 12:42 AM
Unknown Object (File)
Nov 29 2024, 1:16 PM
Unknown Object (File)
Nov 22 2024, 11:36 PM
Unknown Object (File)
Nov 16 2024, 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
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