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)
Thu, Oct 23, 2:46 PM
Unknown Object (File)
Thu, Oct 23, 12:59 PM
Unknown Object (File)
Wed, Oct 22, 7:43 PM
Unknown Object (File)
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
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