Page MenuHomeFreeBSD

libprocstat: make sv_name not static
ClosedPublic

Authored by brooks on Oct 13 2023, 6:45 PM.
Tags
None
Referenced Files
F132414852: D42199.id128842.diff
Thu, Oct 16, 5:59 PM
Unknown Object (File)
Wed, Oct 15, 5:09 AM
Unknown Object (File)
Wed, Oct 15, 5:09 AM
Unknown Object (File)
Wed, Oct 15, 5:09 AM
Unknown Object (File)
Tue, Oct 14, 7:33 PM
Unknown Object (File)
Sun, Oct 12, 10:15 AM
Unknown Object (File)
Fri, Sep 19, 9:26 AM
Unknown Object (File)
Sep 15 2025, 4:42 AM
Subscribers

Details

Summary

Making this variable static makes is_elf32_sysctl() and callers thread
unsafe.

Use a less absurd length for sv_name. The longest name in the system is
"FreeBSD ELF64 V2" which tips the scales at 16+1 bytes. We'll almost
certainly have other problems if we exceed 32 characters.

Diff Detail

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