Re: [edk2-devel] [PATCH] BaseTools: Check the fread function and avoid dead loop

2019-05-10 Thread Bob Feng
Reviewed-by: Bob Feng -Original Message- From: Liu, Zhiguang Sent: Friday, May 10, 2019 9:51 AM To: devel@edk2.groups.io Cc: Feng, Bob C ; Gao, Liming Subject: [PATCH] BaseTools: Check the fread function and avoid dead loop REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1789 If th

[edk2-devel] [PATCH] BaseTools: Check the fread function and avoid dead loop

2019-05-09 Thread Zhiguang Liu
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1789 If the input file is not a valid file, it may cause dead loop, because the return of fread function is not checked. Signed-off-by: Zhiguang Liu Cc: Bob Feng Cc: Liming Gao --- BaseTools/Source/C/VolInfo/VolInfo.c | 11 +-- 1 file