audk/ShellPkg/Library/UefiShellDebug1CommandsLib
Star Zeng 980af1eb0b ShellPkg DmpStore: Make NameSize to be consistent with name buffer
Current code will allocate pool to hold the null char for name buffer
when PrevName==NULL, but the NameSize is still 0.

For this case, GetNextVariableName will return EFI_INVALID_PARAMETER
to follow UEFI 2.7 spec.

UEFI 2.7 spec:
  The VariableNameSize must not be smaller the size of the variable
  name string passed to GetNextVariableName() on input in the
  VariableName buffer.

  EFI_INVALID_PARAMETER
  Null-terminator is not found in the first VariableNameSize bytes of
  the input VariableName buffer.

This patch is to make NameSize to be consistent with name buffer.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jaben Carsey <jaben.carsey@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
2017-06-27 13:35:28 +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 SmbiosView: Display Type 0 BIOS segment in hexadecimal 2017-04-25 08:52:03 +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/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
Dmem.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
DmpStore.c ShellPkg DmpStore: Make NameSize to be consistent with name buffer 2017-06-27 13:35:28 +08: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: Fix typo in comments 2017-04-07 14:15:47 +08:00
UefiShellDebug1CommandsLib.c ShellPkg/Debug1CommandLib: Use StrToGuid/StrHexToBytes in BaseLib 2017-03-01 13:39:46 +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/memmap: Dump memory map information for all memory types 2017-05-12 10:50:51 +08:00