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
F114794886: D37534.id113810.diff
Thu, Apr 17, 12:05 AM
Unknown Object (File)
Thu, Apr 10, 11:16 PM
Unknown Object (File)
Feb 27 2025, 4:36 AM
Unknown Object (File)
Feb 5 2025, 6:52 AM
Unknown Object (File)
Feb 5 2025, 6:35 AM
Unknown Object (File)
Jan 30 2025, 3:20 AM
Unknown Object (File)
Jan 24 2025, 12:42 AM
Unknown Object (File)
Nov 29 2024, 1:16 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 48535
Build 45421: arc lint + arc unit