freebsd-nq/lib/libefivar
John Baldwin d30a1689f5 libefivar: Fix a buffer overread.
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
2022-10-03 16:10:44 -07:00
..
efi-osdep.h
efivar-dp-format.c libefivar: Fix a buffer overread. 2022-10-03 16:10:44 -07:00
efivar-dp-parse.c libefivar: Apply uncrustify changes 2022-02-27 09:45:34 -07:00
efivar-dp-xlate.c libefivar(3): Fix a typo in a source code comment 2022-03-28 19:27:58 +02:00
efivar-dp.h
efivar.3
efivar.c
efivar.h
FreeBSD-update libefivar: Apply uncrustify changes 2022-02-27 09:45:34 -07:00
Makefile
Makefile.depend
ProcessorBind.h
uefi-dplib.h libefivar: Apply uncrustify changes 2022-02-27 09:45:34 -07:00
uefi-dputil.c
uefi-guid.c libefivar: Apply uncrustify changes 2022-02-27 09:45:34 -07:00
uefi-guid.dat