audk/MdeModulePkg/Library/VarCheckPcdLib
Star Zeng cd16355bbf 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 <jian.j.wang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
2018-01-02 09:55:44 +08:00
..
VarCheckPcdLib.inf MdeModulePkg: Add VarCheckPcdLib NULL class library 2015-08-25 03:10:32 +00:00
VarCheckPcdLib.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
VarCheckPcdLibNullClass.c MdeModulePkg VarCheckPcd: Make sure the bin at required alignment 2018-01-02 09:55:44 +08:00
VarCheckPcdStructure.h MdeModulePkg: Add VarCheckPcdLib NULL class library 2015-08-25 03:10:32 +00:00