mirror of
https://git.proxmox.com/git/mirror_edk2
synced 2026-02-05 04:15:06 +00:00
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> |
||
|---|---|---|
| .. | ||
| UefiHandleParsingLib | ||
| UefiShellAcpiViewCommandLib | ||
| UefiShellBcfgCommandLib | ||
| UefiShellCEntryLib | ||
| UefiShellCommandLib | ||
| UefiShellDebug1CommandsLib | ||
| UefiShellDriver1CommandsLib | ||
| UefiShellInstall1CommandsLib | ||
| UefiShellLevel1CommandsLib | ||
| UefiShellLevel2CommandsLib | ||
| UefiShellLevel3CommandsLib | ||
| UefiShellLib | ||
| UefiShellNetwork1CommandsLib | ||
| UefiShellNetwork2CommandsLib | ||