]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Ensure NUL byte is at lowest address within stack cookie 119/head
authorMichael Brown <mcb30@ipxe.org>
Thu, 9 Jul 2020 13:20:53 +0000 (14:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 9 Jul 2020 13:20:53 +0000 (14:20 +0100)
commitb6eecb182e07a82bae2a5f8c28dadb1bea409090
tree366c1f338fc6d51c921b5a095a8c5d82fa4e5c8d
parentfcdd9c0982e6c5a435fefdcc9444242fd4fbdd8b
[efi] Ensure NUL byte is at lowest address within stack cookie

The NUL byte included within the stack cookie to act as a string
terminator should be placed at the lowest byte address within the
stack cookie, in order to avoid potentially including the stack cookie
value within an accidentally unterminated string.

Suggested-by: Pete Beck <pete.beck@ioactive.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_init.c