670a4056 | 05-Jan-2018 |
Warner Losh <imp@FreeBSD.org> |
Need to convert '/' back to '\' when creating a path. Ideally, this would be filesystem type dependent, but that's difficult to accomplish and it's unclear how the UEFI firmware will cope. Be conserv
Need to convert '/' back to '\' when creating a path. Ideally, this would be filesystem type dependent, but that's difficult to accomplish and it's unclear how the UEFI firmware will cope. Be conservative and make boot loaders cope instead.
Sponsored by: Netflix
show more ...
|
ae3adc06 | 31-Aug-2017 |
Warner Losh <imp@FreeBSD.org> |
Fix parsing File() nodes in device paths.
o Add File to the mUefiDevicePathLibDevPathFromTextTable table so we don't include 'File()' in the supposed path name. This happens because of a possibl
Fix parsing File() nodes in device paths.
o Add File to the mUefiDevicePathLibDevPathFromTextTable table so we don't include 'File()' in the supposed path name. This happens because of a possible misfeature in the EDK2 code where any path that's not recognized is treated as a File() node. o Convert utf8 input into ucs2 output rather than just copying the utf8 and hoping for the best (no good comes from that). o Remove bogus comment about needing to add 1. The dummy array already is length 1, so that's included in sizeof the struct, so there's no need to add it.
Sponsored by: Netflix
show more ...
|
d780e059 | 23-Mar-2017 |
Warner Losh <imp@FreeBSD.org> |
Fix a coverity-discovered NULL pointer dereference.
*** CID 1372598: Null pointer dereferences (FORWARD_NULL) /lib/libefivar/efivar-dp-parse.c: 3612 in UefiDevicePathLibConvertTextToDeviceNode()
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
show more ...
|
7270962a | 09-Mar-2017 |
Warner Losh <imp@FreeBSD.org> |
Bring in EDK2 routines for printing and parsing device paths.
This commit implements the (mostly?) Linux compatible efidp_format_device_path and efidp_parse_device_path APIs. These are the only APIs
Bring in EDK2 routines for printing and parsing device paths.
This commit implements the (mostly?) Linux compatible efidp_format_device_path and efidp_parse_device_path APIs. These are the only APIs exposed through this library. However, they are built on code from Tianocore's EDK2 MdePkg. They are brought in as new files here for reasons described in FreeBSD-update.
Symbol versioning will be introduced to control what's exported from the EDK2 code.
Some structural changes may be necessary when we move to sharing with sys/boot/efi.
Sponsored by: Netflix
show more ...
|