projects
/
mirror_edk2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pointer verification (not NULL) and buffer overrun fixes.
[mirror_edk2.git]
/
ShellPkg
/
Library
/
UefiShellDebug1CommandsLib
/
HexEdit
/
FileImage.c
diff --git
a/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c
b/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c
index 57cefb882c02faa5b526490ee600757beafe97fd..fd6387a20a9a78e98e8817dc696259c859a6d245 100644
(file)
--- a/
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c
+++ b/
ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.c
@@
-383,7
+383,7
@@
Returns:
//
\r
// if is the old file
\r
//
\r
- if (StrCmp (FileName, HFileImage.FileName) == 0) {
\r
+ if (
HFileImage.FileName != NULL && FileName != NULL &&
StrCmp (FileName, HFileImage.FileName) == 0) {
\r
//
\r
// check whether file exists on disk
\r
//
\r