Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177478458
D57786.1794523301.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
431 B
Referenced Files
None
Subscribers
None
D57786.1794523301.diff
View Options
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c
--- a/sys/kern/link_elf.c
+++ b/sys/kern/link_elf.c
@@ -1289,6 +1289,7 @@
/* Read section string table */
shstrindex = hdr->e_shstrndx;
+ if (shstrindex >= hdr->e_shnum) goto nosyms;
if (shstrindex != 0 && shdr[shstrindex].sh_type == SHT_STRTAB &&
shdr[shstrindex].sh_size != 0) {
nbytes = shdr[shstrindex].sh_size;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 12, 10:41 PM (11 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41659965
Default Alt Text
D57786.1794523301.diff (431 B)
Attached To
Mode
D57786: link_elf: Guard against out‑of‑bounds read of shdr[shstrindex]
Attached
Detach File
Event Timeline