[Bug 218861] libelf elf_update fails when adding sections
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Apr 24 23:20:27 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218861
Bug ID: 218861
Summary: libelf elf_update fails when adding sections
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: freebsd-bugs at FreeBSD.org
Reporter: emc2 at metricspace.net
Created attachment 182066
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=182066&action=edit
Patch to fix the problem
The libelf file in base fails to perform elf_update when growing the file by
adding new sections, because elf_getdata erroneously checks section boundaries
against the old file size.
This can be fixed by omitting this check when doing elf_update.
The attached patch fixes the problem.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list