From: Star Zeng Date: Fri, 29 Dec 2017 10:12:36 +0000 (+0800) Subject: MdeModulePkg VarCheckPcd: Make sure the bin at required alignment X-Git-Tag: edk2-stable201903~2687 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=cd16355bbf3267f1ad7f678e91dc60cf31f3cb29;hp=cd16355bbf3267f1ad7f678e91dc60cf31f3cb29 MdeModulePkg VarCheckPcd: Make sure the bin at required alignment According to UEFI/PI spec, the AllocateXXXPool() interfaces should return eight-byte aligned buffer that satisfies the required HEADER_ALIGNMENT which is 4. This patch adds ASSERT to make sure the bin at required alignment, that can help catch the issue earlier about incorrect aligned buffer returned from AllocateXXXPool(). Cc: Jian J Wang Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng Reviewed-by: Jian J Wang ---