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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to