diff options
Diffstat (limited to 'website/static/security/patches/EN-22:27/loader.patch')
-rw-r--r-- | website/static/security/patches/EN-22:27/loader.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/website/static/security/patches/EN-22:27/loader.patch b/website/static/security/patches/EN-22:27/loader.patch new file mode 100644 index 0000000000..6fc98da878 --- /dev/null +++ b/website/static/security/patches/EN-22:27/loader.patch @@ -0,0 +1,14 @@ +--- stand/common/load_elf.c.orig ++++ stand/common/load_elf.c +@@ -1259,9 +1259,8 @@ + strp = strdupout((vm_offset_t)(ef->strtab + sym.st_name)); + if (strcmp(name, strp) == 0) { + free(strp); +- if (sym.st_shndx != SHN_UNDEF || +- (sym.st_value != 0 && +- ELF_ST_TYPE(sym.st_info) == type)) { ++ if (sym.st_shndx != SHN_UNDEF && sym.st_value != 0 && ++ ELF_ST_TYPE(sym.st_info) == type) { + *symp = sym; + return 0; + } |