mirror_edk2/ShellPkg/Library/UefiShellDebug1CommandsLib
Ruiyu Ni 1a421c2c17 ShellPkg/editor: Fix system hang when console max column > 200
EditorClearLine() assumes the console max column is less than 200.
When the max column is bigger than 200, the code incorrectly
modifies the content out side of Line buffer.
It may cause system hang or reset.

The patch changes the function to print several times when
the max column is bigger than 200.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2017-10-23 15:04:18 +08:00
..
Edit ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
HexEdit ShellPkg: Refine casting expression result to bigger size 2017-03-06 14:33:25 +08:00
SmbiosView ShellPkg: Update header file including style 2017-08-16 16:55:27 +08:00
Comp.c ShellPkg/comp: Fix file tag name. 2017-04-20 10:44:13 +08:00
Compress.c ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00
Compress.h Refine comments and two code style. 2011-09-02 08:05:34 +00:00
Dblk.c ShellPkg/dblk: Honor the BlockIo alignment requirement. 2017-08-03 12:16:33 +08:00
Dmem.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
DmpStore.c ShellPkg/DmpStore: fix GCC/CLANG build failure 2017-09-22 16:50:44 +02:00
EditInputBar.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
EditInputBar.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
EditMenuBar.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
EditMenuBar.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
EditStatusBar.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
EditStatusBar.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
EditTitleBar.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
EditTitleBar.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
EfiCompress.c ShellPkg/EfiCompress: Handle memory allocation failure 2016-07-18 10:55:26 +08:00
EfiDecompress.c ShellPkg: Fix VS2010/2012 build failure 2016-07-19 11:12:22 +08:00
LoadPciRom.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
MemMap.c ShellPkg/memmap: Dump memory map information for all memory types 2017-05-12 10:50:51 +08:00
Mm.c ShellPkg/mm: Support UINT16 segment number 2017-03-27 14:10:59 +08:00
Mode.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
Pci.c ShellPkg/pci: Fix VS2012 build failure 2017-04-20 11:04:50 +08:00
Pci.h ShellPkg/pci: Use PCI definitions defined in MdePkg 2017-01-25 16:09:05 +08:00
SerMode.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
SetSize.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
SetVar.c ShellPkg/setvar: Check the duplicate flag 2017-07-27 18:07:55 +08:00
UefiShellDebug1CommandsLib.c ShellPkg/editor: Fix system hang when console max column > 200 2017-10-23 15:04:18 +08:00
UefiShellDebug1CommandsLib.h ShellPkg/Debug1CommandLib: Use StrToGuid/StrHexToBytes in BaseLib 2017-03-01 13:39:46 +08:00
UefiShellDebug1CommandsLib.inf ShellPkg: Update Guid/Protocol usages in INF files. 2016-04-13 14:52:59 +08:00
UefiShellDebug1CommandsLib.uni ShellPkg/dmpstore: Show name of known variable vendor GUID 2017-09-22 10:32:23 +08:00