Date: Mon, 24 Apr 2017 23:20:27 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 218861] libelf elf_update fails when adding sections Message-ID: <bug-218861-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218861 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@FreeBSD.org Reporter: emc2@metricspace.net Created attachment 182066 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D182066&action= =3Dedit 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 boundar= ies against the old file size. This can be fixed by omitting this check when doing elf_update. The attached patch fixes the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218861-8>