Page MenuHomeFreeBSD

D61321.1794364329.diff
No OneTemporary

Authored By
Unknown
Size
474 B
Referenced Files
None
Subscribers
None

D61321.1794364329.diff

diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c
--- a/sys/kern/link_elf_obj.c
+++ b/sys/kern/link_elf_obj.c
@@ -951,6 +951,12 @@
}
/* Do we have a string table for the section names? */
+ if (hdr->e_shstrndx >= hdr->e_shnum) {
+ link_elf_error(filename,
+ "file has an invalid section name string table");
+ error = ENOEXEC;
+ goto out;
+ }
shstrindex = -1;
if (hdr->e_shstrndx != 0 &&
shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) {

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 11, 2:32 AM (19 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41617356
Default Alt Text
D61321.1794364329.diff (474 B)

Event Timeline