Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160569951
D57809.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
480 B
Referenced Files
None
Subscribers
None
D57809.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
@@ -1276,6 +1276,9 @@
* Try and load the symbol table if it's present. (you can
* strip it!)
*/
+ if (hdr->e_shnum != 0 && hdr->e_shentsize > SIZE_MAX / hdr->e_shnum) {
+ return (ENOEXEC);
+ }
nbytes = hdr->e_shnum * hdr->e_shentsize;
if (nbytes == 0 || hdr->e_shoff == 0)
goto nosyms;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 26, 7:13 PM (5 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34317621
Default Alt Text
D57809.diff (480 B)
Attached To
Mode
D57809: link_elf: Guard against multiplication overflow
Attached
Detach File
Event Timeline
Log In to Comment