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, May 22, 1:21 PM
Unknown Object (File)
Thu, May 21, 7:53 AM
Unknown Object (File)
Wed, May 20, 12:48 PM
Unknown Object (File)
Sat, May 16, 8:24 AM
Unknown Object (File)
Sat, May 16, 12:25 AM
Unknown Object (File)
Sat, May 16, 12:24 AM
Unknown Object (File)
Sat, May 16, 12:24 AM
Unknown Object (File)
Sun, May 3, 2:36 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