]> git.proxmox.com Git - mirror_edk2.git/blob - EdkShellBinPkg/SecurityPatch.diff
Fix a security hole in shell binaries:
[mirror_edk2.git] / EdkShellBinPkg / SecurityPatch.diff
1 Index: shellenv/exec.c
2 ===================================================================
3 --- shellenv/exec.c (revision 36)
4 +++ shellenv/exec.c (working copy)
5 @@ -2079,6 +2079,10 @@
6 if (!EFI_ERROR (Status)) {
7 goto Done;
8 } else {
9 + //
10 + // Set ImageHandle to NULL if any error status is returned.
11 + //
12 + ImageHandle = NULL;
13 Status = LibGetImageHeader (
14 DevicePath,
15 &DosHeader,