Page MenuHomeFreeBSD

libprocstat: make sv_name not static
ClosedPublic

Authored by brooks on Oct 13 2023, 6:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 4, 10:59 AM
Unknown Object (File)
Sat, Aug 29, 10:09 PM
Unknown Object (File)
Fri, Aug 28, 4:23 PM
Unknown Object (File)
Wed, Aug 19, 7:39 AM
Unknown Object (File)
Wed, Aug 19, 7:39 AM
Unknown Object (File)
Wed, Aug 19, 12:00 AM
Unknown Object (File)
Jun 25 2026, 5:19 AM
Unknown Object (File)
May 22 2026, 1:21 PM
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