freebsd-dev/usr.sbin/uefisign
Kenneth Camann 5deb350025 uefisign: fix SizeOfHeaders sanity check.
This check was too aggressive: it is fine if SizeOfHeaders is exactly
equal to the size of the DOS stub + PE header + section table. Despite
being wrong this code typically worked for most EFI binaries because
SizeOfHeaders is rounded up to a multiple of FileAlignment, which is
often large (e.g., 512 bytes for the FreeBSD loader) so most binaries
made it through.

Reviewed by:	imp@
Sponsored by:	Netflix
Pull Request:	https://github.com/freebsd/freebsd-src/pull/445
2021-06-03 15:22:14 -06:00
..
child.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
magic.h Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
Makefile Stop hardcoding WARNS in uefisign(8). 2020-04-01 15:10:26 +00:00
Makefile.depend
pe.c uefisign: fix SizeOfHeaders sanity check. 2021-06-03 15:22:14 -06:00
uefisign.8 Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
uefisign.c uefisign: fix handling of errors from child proc 2021-04-06 12:13:59 -05:00
uefisign.h Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00