Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178041920
D61055.1795830916.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
425 B
Referenced Files
None
Subscribers
None
D61055.1795830916.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
@@ -899,7 +899,7 @@
error = ENOEXEC;
goto out;
}
- if (symstrindex < 0 || symstrindex > hdr->e_shnum ||
+ if (symstrindex < 0 || symstrindex >= hdr->e_shnum ||
shdr[symstrindex].sh_type != SHT_STRTAB) {
link_elf_error(filename, "file has invalid symbol strings");
error = ENOEXEC;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 28, 1:55 AM (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41616702
Default Alt Text
D61055.1795830916.diff (425 B)
Attached To
Mode
D61055: link_elf_obj: fix an off-by-one in the symbol string table index check
Attached
Detach File
Event Timeline