]> git.ipfire.org Git - thirdparty/grub.git/commit
gpt: Add compile time asserts for guid and gpt_partentry sizes
authorVladimir Serbinenko <phcoder@gmail.com>
Sun, 13 Aug 2023 07:18:53 +0000 (09:18 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Wed, 8 Nov 2023 04:05:06 +0000 (05:05 +0100)
commit64e3cee72ab8f5876abfebb263b5e6cf7c4a9a4e
treea0d1c1d85f067f1444dfa95995223bb83cb0049a
parent7de6fe9635f1275268116a0c835cb207d2d0aa6f
gpt: Add compile time asserts for guid and gpt_partentry sizes

With new alignment specification it's easy to screw up. Fortunately if it
happens the size will be bigger than intended. Compile time assert will catch
this.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/partmap/gpt.c