Re: [edk2] [PATCH] MdeModulePkg VarCheckHii: Make sure the bin at required alignment

2017-12-29 Thread Wang, Jian J
Reviewed-by: Jian J Wang > -Original Message- > From: Zeng, Star > Sent: Friday, December 29, 2017 6:14 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Wang, Jian J ; > Yao, Jiewen > Subject:

[edk2] [PATCH] MdeModulePkg VarCheckHii: Make sure the bin at required alignment

2017-12-29 Thread Star Zeng
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