HomeFreeBSD

libprocstat: make sv_name not static

Description

libprocstat: make sv_name not static

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.

Reviewed by: markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D42199

(cherry picked from commit 72a4ee26a7c665ae1c31abe1c6feeaa7ccaba140)

Details

Provenance
brooksAuthored on Oct 26 2023, 8:38 PM
Reviewer
markj
Differential Revision
D42199: libprocstat: make sv_name not static
Parents
rG9fcbd4c0d19c: libprocstat: simplify auxv value conversion
Branches
Unknown
Tags
Unknown