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 libefivar: define MDE_CPU_RISCV64 2020-07-06 17:47:29 +00:00
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 libefivar(3): efi_set_variables_supported.3 should be efi_variables_supported.3 2021-12-21 20:42:39 +08:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
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