grub/grub-core/loader/i386/pc
Alexey Makhalov caea56d1f8 relocator: Protect grub_relocator_alloc_chunk_addr() input args against integer underflow/overflow
Use arithmetic macros from safemath.h to accomplish it. In this commit,
I didn't want to be too paranoid to check every possible math equation
for overflow/underflow. Only obvious places (with non zero chance of
overflow/underflow) were refactored.

Signed-off-by: Alexey Makhalov <amakhalov@vmware.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2020-07-29 16:55:48 +02:00
..
chainloader.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
freedos.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
linux.c relocator: Protect grub_relocator_alloc_chunk_addr() input args against integer underflow/overflow 2020-07-29 16:55:48 +02:00
ntldr.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
plan9.c verifiers: Add possibility to verify kernel and modules command lines 2018-11-09 13:25:31 +01:00
pxechainloader.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00
truecrypt.c verifiers: File type for fine-grained signature-verification controlling 2018-11-09 13:25:31 +01:00