d30a1689f5
DevPathToTextUsbWWID allocates a separate copy of the SerialNumber string to append a null terminator if the original string is not null terminated. However, by using AllocateCopyPool, it tries to copy 'Length + 1' words from the existing string containing 'Length' characters into the target string. Split the copy out to only copy 'Length' characters instead. Reviewed by: imp, emaste Reported by: GCC 12 -Wstringop-overread Differential Revision: https://reviews.freebsd.org/D36826 |
||
---|---|---|
.. | ||
efi-osdep.h | ||
efivar-dp-format.c | ||
efivar-dp-parse.c | ||
efivar-dp-xlate.c | ||
efivar-dp.h | ||
efivar.3 | ||
efivar.c | ||
efivar.h | ||
FreeBSD-update | ||
Makefile | ||
Makefile.depend | ||
ProcessorBind.h | ||
uefi-dplib.h | ||
uefi-dputil.c | ||
uefi-guid.c | ||
uefi-guid.dat |