Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177424583
D61321.1794349696.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
474 B
Referenced Files
None
Subscribers
None
D61321.1794349696.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 10, 10:28 PM (13 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41617356
Default Alt Text
D61321.1794349696.diff (474 B)
Attached To
Mode
D61321: link_elf_obj: bounds-check e_shstrndx in link_elf_load_file()
Attached
Detach File
Event Timeline