opnsense-src/sys/dev/smbios
Olivier Certner bb04712e37
smbios: Carefully print wrong entry point signature on identify
Using printf() with '%s' can lead to arbitrary long printing (although,
usually, a NUL byte should appear quite quickly) and trying to print
unprintable characters.

Instead, print in hexadecimal the exact bytes that are compared to the
expected signature.

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
2025-03-07 17:42:46 +01:00
..
smbios.c smbios: Carefully print wrong entry point signature on identify 2025-03-07 17:42:46 +01:00
smbios.h smbios: Add length sanity checking 2024-07-24 23:09:57 -06:00
smbios_subr.c x86: gate smbios hypervisor identification behind vm_guest 2023-03-17 00:54:32 -05:00