boot: Introduce helper macros for offset checking
authorJan Janssen <medhefgo@web.de>
Wed, 29 Dec 2021 13:35:07 +0000 (14:35 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 Jan 2022 15:21:14 +0000 (16:21 +0100)
commitc926189767e865fc191a21c67eb9e4916b06cf3e
treedd9518d6e0940c4591ccf9187b48ec9cba435cb4
parentd6d97abd7887f6927cf30f511b1ff41efdb1812c
boot: Introduce helper macros for offset checking

This fixes a subtle sizeof overflow on 32bit machines.

(cherry picked from commit aa1d0f25873f737fb9306a12f9283872012f2d9a)
src/boot/efi/bcd.c