mirror of https://github.com/acidanthera/audk.git
ef2360569d
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1964 If the file begin with single line Feed ('\n'), then "AsciiChar == '\n' && ((CHAR8*)Buffer)[LoopVar-1] != '\r'" would cause a underflow. Add this condition "(AsciiChar == '\n' && LoopVar == 0)" before it to make sure (LoopVar - 1) would never encounter a underflow. Same change in Unicode section. Cc: Jaben Carsey <jaben.carsey@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Andrew Fish <afish@apple.com> Signed-off-by: Zhichao Gao <zhichao.gao@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Andrew Fish <afish@apple.com> |
||
---|---|---|
.. | ||
Alias.c | ||
Cls.c | ||
Echo.c | ||
GetMtc.c | ||
Help.c | ||
Pause.c | ||
Touch.c | ||
Type.c | ||
UefiShellLevel3CommandsLib.c | ||
UefiShellLevel3CommandsLib.h | ||
UefiShellLevel3CommandsLib.inf | ||
UefiShellLevel3CommandsLib.uni | ||
Ver.c |