Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168466146
D57786.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
431 B
Referenced Files
None
Subscribers
None
D57786.id.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
Sat, Aug 29, 1:16 PM (22 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34292757
Default Alt Text
D57786.id.diff (431 B)
Attached To
Mode
D57786: link_elf: Guard against out‑of‑bounds read of shdr[shstrindex]
Attached
Detach File
Event Timeline
Log In to Comment