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)
Nov 1 2024, 5:19 AM
Unknown Object (File)
Oct 10 2024, 10:10 PM
Unknown Object (File)
Oct 7 2024, 4:34 AM
Unknown Object (File)
Sep 27 2024, 9:26 AM
Unknown Object (File)
Sep 24 2024, 8:28 PM
Unknown Object (File)
Sep 23 2024, 7:05 AM
Unknown Object (File)
Sep 15 2024, 4:37 PM
Unknown Object (File)
Sep 10 2024, 1:00 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