audk/ShellPkg
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
..
Application ShellPkg: Fix the bug that handling Ctrl-C improperly 2017-11-29 09:07:26 +08:00
DynamicCommand ShellPkg/Dp: Updated to dump perf log based on FPDT table 2018-02-08 12:50:22 +08:00
Include ShellPkg: Rename gShellCurDir to gShellCurMapping 2017-08-30 11:42:41 +08:00
Library ShellPkg/hexedit: Fix a read-after-free bug 2018-02-09 12:24:54 +08:00
ShellPkg.dec ShellPkg: Update package version from 1.01 to 1.02 2018-01-26 10:08:55 +08:00
ShellPkg.dsc ShellPkg: Update package version from 1.01 to 1.02 2018-01-26 10:08:55 +08:00