audk/ShellPkg/Library/UefiShellDebug1CommandsLib
Michael Kinney c0b7e2b2bf ShellPkg/Hexedit: Fix FreePool() ASSERT() when writing disk
The HDiskImageSave() function copies a device path using
DuplicateDevicePath() and passes that device path to
gBS->LocateDevicePath() that changes the value of the
device path pointer.  When FreePool() is called with the
modified device path pointer, the FreePool() service
generates an ASSERT() because the signature for the pool
head can not be found.

The function HDiskImageRead() immediately above
HDiskImageSave() has the correct algorithm that uses an
additional local variable called DupDevicePathForFree to
preserve the pointer to the allocated buffer so it can
be used in the call to FreePool().

Bug: <https://bugzilla.tianocore.org/show_bug.cgi?id=131>

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>
2016-10-03 15:05:40 -07:00
..
Edit ShellPkg/Edit: Handle memory allocation failure 2016-07-18 10:55:35 +08:00
HexEdit ShellPkg/Hexedit: Fix FreePool() ASSERT() when writing disk 2016-10-03 15:05:40 -07:00
SmbiosView ShellPkg SmbiosView: Show "SocketDesignation" instead of "Socket" for Type 4 2016-08-08 17:00:20 +08:00
Comp.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
Compress.c ShellPkg: Add missing header files 2014-02-25 23:03:17 +00:00
Compress.h Refine comments and two code style. 2011-09-02 08:05:34 +00:00
Dblk.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
Dmem.c ShellPkg/DMem: Handle memory allocation failure 2016-07-18 10:55:23 +08:00
DmpStore.c ShellPkg: Refine code to use Strn**S safe functions instead of Str**S ones in some cases. 2015-07-09 03:19:06 +00:00
EditInputBar.c ShellPkg: Fix calls to SimpleTextOut->SetAttribute to not use reserved bits 2014-07-25 18:46:23 +00:00
EditInputBar.h
EditMenuBar.c ShellPkg: Added the Ctrl based hot key and changed text editor's UI. 2011-07-20 20:10:45 +00:00
EditMenuBar.h ShellPkg: Added the Ctrl based hot key and changed text editor's UI. 2011-07-20 20:10:45 +00:00
EditStatusBar.c ShellPkg: Fix calls to SimpleTextOut->SetAttribute to not use reserved bits 2014-07-25 18:46:23 +00:00
EditStatusBar.h
EditTitleBar.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
EditTitleBar.h
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/LoadPciRom: Fix the ConnectAll() implementation 2016-07-25 10:20:14 +08:00
MemMap.c ShellPkg: Add Persistent Memory support in 'memmap' command 2016-09-22 14:17:07 -07:00
Mm.c ShellPkg/Mm: Fix build warnings 2015-12-14 06:03:58 +00:00
Mode.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
Pci.c ShellPkg: pci -i -_e to print next capability 2016-09-08 09:27:40 -07:00
Pci.h ShellPkg: fix typo. 2014-07-28 16:58:34 +00:00
SerMode.c ShellPkg: decode serial console attribute set failure status when used thru sermode command 2015-07-14 17:54:12 +00:00
SetSize.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
SetVar.c ShellPkg: UefiShellDebug1CommandsLib: fix hex string parsing in SETVAR 2015-04-07 14:18:40 +00:00
UefiShellDebug1CommandsLib.c ShellPkg: elevate DumpHex() from Debug1-internal to generic-internal 2016-01-21 18:40:40 +00:00
UefiShellDebug1CommandsLib.h ShellPkg: elevate DumpHex() from Debug1-internal to generic-internal 2016-01-21 18:40:40 +00:00
UefiShellDebug1CommandsLib.inf ShellPkg: Update Guid/Protocol usages in INF files. 2016-04-13 14:52:59 +08:00
UefiShellDebug1CommandsLib.uni ShellPkg: Add Persistent Memory support in 'memmap' command 2016-09-22 14:17:07 -07:00