1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/lib/libefivar
Warner Losh d780e0595c Fix a coverity-discovered NULL pointer dereference.
*** CID 1372598:  Null pointer dereferences  (FORWARD_NULL)
/lib/libefivar/efivar-dp-parse.c: 3612 in UefiDevicePathLibConvertTextToDeviceNode()
   Dereferencing null pointer "FromText".

When ported from Tiano core, I commented this out with an ifdef. That
was in error because we're supposed to fallback to a filepath when
nothing else patches. Instead, restore the original code, but fix
DevPathFromTextFilePath to cope with the conversion to narrow
strings. Also, fix the off-by-one error in the size of the memory it
allocates.

The off by one error is documented in Tiano core bug
https://bugzilla.tianocore.org/show_bug.cgi?id=441

CID: 1372598
Sponsored by: Netflix
2017-03-23 02:30:57 +00:00
..
efi-osdep.h Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
efivar-dp-format.c Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
efivar-dp-parse.c Fix a coverity-discovered NULL pointer dereference. 2017-03-23 02:30:57 +00:00
efivar-dp.h Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
efivar.3
efivar.c Share UCS2/UTF8 routines between boot loader and userland. 2017-03-09 00:24:01 +00:00
efivar.h Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
FreeBSD-update Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
Makefile Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
Makefile.depend DIRDEPS_BUILD: Connect new dependencies. 2016-11-13 00:11:23 +00:00
ProcessorBind.h Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
uefi-dplib.h Define StrCmp in a funky was to be bug-compatible with EDK2 code. 2017-03-23 02:30:52 +00:00
uefi-dputil.c Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
uefi-guid.c Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00
uefi-guid.dat Bring in EDK2 routines for printing and parsing device paths. 2017-03-09 00:31:31 +00:00