Page MenuHomeFreeBSD

D61321.1794348669.diff
No OneTemporary

Authored By
Unknown
Size
474 B
Referenced Files
None
Subscribers
None

D61321.1794348669.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
Tue, Nov 10, 10:11 PM (4 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41617356
Default Alt Text
D61321.1794348669.diff (474 B)

Event Timeline