summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Table/TableReport.py
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2018-02-08 00:05:10 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2018-02-09 12:24:54 +0800
commit1efda6414f90c515e4ba1a8f996282f2bd322fea (patch)
tree8266883a95197a381621937936e2ad53cf30b4d5 /BaseTools/Source/Python/Table/TableReport.py
parentad6040ec9b5bbc462762331f9738b8e42c0b9c80 (diff)
downloadedk2-1efda6414f90c515e4ba1a8f996282f2bd322fea.tar.gz
edk2-1efda6414f90c515e4ba1a8f996282f2bd322fea.tar.bz2
edk2-1efda6414f90c515e4ba1a8f996282f2bd322fea.zip
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>
Diffstat (limited to 'BaseTools/Source/Python/Table/TableReport.py')
0 files changed, 0 insertions, 0 deletions