]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/Workspace/DscBuildData.py
BaseTools: add ASSERT checker for array buffer in fdf and command line
authorZhaozh1x <zhiqiangx.zhao@intel.com>
Mon, 22 Oct 2018 08:23:18 +0000 (16:23 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 24 Oct 2018 14:27:04 +0000 (22:27 +0800)
commit9f2b0594ed85f93e8054dbc4d709836185bb0b95
tree119024bf198baa455e8e94c93f4a0a6b004d1ef7
parenta8b5750901faa63ff5570634851e648b8e335e5a
BaseTools: add ASSERT checker for array buffer in fdf and command line

For structure PCD in fdf file and command line,
1. use compiler time assert to check the array index, report error
if array index exceeds the array number.
2. use compiler time assert to check the array size, report error
if the user declared size in header file is smaller than the user
used in fdf file and command line.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: ZhiqiangX Zhao <zhiqiangx.zhao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/Python/Workspace/DscBuildData.py