mirror of
https://git.proxmox.com/git/mirror_edk2
synced 2025-11-07 09:58:59 +00:00
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> |
||
|---|---|---|
| .. | ||
| BufferImage.c | ||
| BufferImage.h | ||
| Clipboard.c | ||
| Clipboard.h | ||
| DiskImage.c | ||
| DiskImage.h | ||
| FileImage.c | ||
| FileImage.h | ||
| HexEdit.c | ||
| HexEditor.h | ||
| HexEditorTypes.h | ||
| HexeditStrings.uni | ||
| MainHexEditor.c | ||
| MainHexEditor.h | ||
| MemImage.c | ||
| MemImage.h | ||
| Misc.c | ||
| Misc.h | ||