Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143320948
D53063.id164085.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
699 B
Referenced Files
None
Subscribers
None
D53063.id164085.diff
View Options
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -2790,7 +2790,7 @@
bool (*cb)(const Elf_Note *, void *, bool *), void *cb_arg)
{
const Elf_Note *note, *note0, *note_end;
- const char *note_name;
+ const char *note_name, *note_desc;
char *buf;
int i, error;
bool res;
@@ -2843,6 +2843,10 @@
(const char *)note_end || strncmp(note_vendor,
note_name, checknote->n_namesz) != 0)
goto nextnote;
+ note_desc = note_name + roundup2(note->n_namesz,
+ ELF_NOTE_ROUNDSIZE);
+ if (note_desc + note->n_descsz > (const char *)note_end)
+ goto nextnote;
if (cb(note, cb_arg, &res))
goto ret;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 29, 8:57 PM (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28089739
Default Alt Text
D53063.id164085.diff (699 B)
Attached To
Mode
D53063: imgact_elf: Check note body sizes
Attached
Detach File
Event Timeline
Log In to Comment