Re: [edk2] [PATCH] BaseTools: add ASSERT checker for array buffer in fdf and command line

2018-10-24 Thread Feng, Bob C
Reviewed-by: Bob Feng -Original Message- From: Zhao, ZhiqiangX Sent: Monday, October 22, 2018 4:38 PM To: edk2-devel@lists.01.org Cc: Zhao, ZhiqiangX ; Gao, Liming ; Zhu, Yonghong ; Feng, Bob C Subject: [PATCH] BaseTools: add ASSERT checker for array buffer in fdf and command line F

[edk2] [PATCH] BaseTools: add ASSERT checker for array buffer in fdf and command line

2018-10-22 Thread Zhaozh1x
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