summaryrefslogtreecommitdiffstats
path: root/EdkShellBinPkg/SecurityPatch.diff
diff options
context:
space:
mode:
Diffstat (limited to 'EdkShellBinPkg/SecurityPatch.diff')
-rw-r--r--EdkShellBinPkg/SecurityPatch.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/EdkShellBinPkg/SecurityPatch.diff b/EdkShellBinPkg/SecurityPatch.diff
new file mode 100644
index 0000000000..01a05c065a
--- /dev/null
+++ b/EdkShellBinPkg/SecurityPatch.diff
@@ -0,0 +1,15 @@
+Index: shellenv/exec.c
+===================================================================
+--- shellenv/exec.c (revision 36)
++++ shellenv/exec.c (working copy)
+@@ -2079,6 +2079,10 @@
+ if (!EFI_ERROR (Status)) {
+ goto Done;
+ } else {
++ //
++ // Set ImageHandle to NULL if any error status is returned.
++ //
++ ImageHandle = NULL;
+ Status = LibGetImageHeader (
+ DevicePath,
+ &DosHeader,