mirror_edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit
Ruiyu Ni 1efda6414f ShellPkg/hexedit: Fix a read-after-free bug
HDiskImageSetDiskNameOffsetSize() and HFileImageSetFileName()
may be called using the current disk name or file name.
When this happens, today's implementation firstly frees the memory
and then accesses the just-freed memory.
The patch fixes this issue by doing nothing when the disk or file
name is the current one.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
2018-02-09 12:24:54 +08:00
..
BufferImage.c ShellPkg: Refine casting expression result to bigger size 2017-03-06 14:33:25 +08:00
BufferImage.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
Clipboard.c add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
Clipboard.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
DiskImage.c ShellPkg/hexedit: Fix a read-after-free bug 2018-02-09 12:24:54 +08:00
DiskImage.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
FileImage.c ShellPkg/hexedit: Fix a read-after-free bug 2018-02-09 12:24:54 +08:00
FileImage.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
HexEdit.c ShellPkg: Standardized HP Copyright Message String 2015-02-04 22:25:01 +00:00
HexEditor.h add Edit and HexEdit commands. 2011-03-25 21:15:07 +00:00
HexEditorTypes.h ShellPkg/hexeditor: Use CpuIo for memory access 2017-11-02 08:40:33 +08:00
HexeditStrings.uni ShellPkg: Convert all .uni files to utf-8 2015-12-09 23:07:58 +00:00
MainHexEditor.c ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
MainHexEditor.h ShellPkg/UefiShellDebug1CommandsLib: Remove unnecessary EFIAPI 2016-10-09 10:27:47 +08:00
MemImage.c ShellPkg/HexEdit: Fix EBC build failure 2017-11-07 10:17:28 +08:00
MemImage.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00
Misc.c update copyright line format 2011-06-07 08:08:19 +00:00
Misc.h add comments to function declarations and definitions and updated to match coding style document. 2011-04-05 20:55:45 +00:00