Re: [edk2] [Patch] BaseTools: Add parameter check for the AsciiStringToUint64

2019-02-22 Thread Gao, Liming
Bob: This function is used to convert string to UINT64. So, the string len should not be too long. I think UINT8 max value 255 is enough for its usage. Thanks Liming > -Original Message- > From: Feng, Bob C > Sent: Friday, February 22, 2019 6:05 PM > To: edk2-devel@lists.01.org > Cc:

[edk2] [Patch] BaseTools: Add parameter check for the AsciiStringToUint64

2019-02-22 Thread Feng, Bob C
If the input parameter AsciiString length is greater than 255, the GenFv will hang. This patch is to fix this issue. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng Cc: Liming Gao --- BaseTools/Source/C/Common/ParseInf.c | 4 ++-- 1 file changed, 2