[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/19005] objcopy buffer-over-read
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug binutils/19005] objcopy buffer-over-read |
Date: |
Tue, 29 Sep 2015 13:34:39 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19005
--- Comment #19 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c68c16371639f360d1b110eacf4b1a28ddb5cf53
commit c68c16371639f360d1b110eacf4b1a28ddb5cf53
Author: H.J. Lu <address@hidden>
Date: Tue Sep 29 06:33:03 2015 -0700
Adjust the output section size to skip gap fills
In objcopy, copy_object calls copy_section to copy contents of input
section to output section. When --gap-fill= is used, objcopy extends
the size of output sectios to fill gaps between output sections with
gap fills. In this case, we adjust the output section size to skip
gap files to avoid reading beypond the input section buffer before
calling copy_section and restore the output section size after input
sections have been copied.
binutils/
PR binutils/19005
* objcopy.c (copy_object): Adjust the output section size to
skip gap fills between sections when copying from input sections
to output sections.
ld/testsuite/
PR binutils/19005
* ld-elf/pr19005.d: New file.
* ld-elf/pr19005.s: Likewise.
* ld-elf/pr19005.t: Likewise.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/19005] objcopy buffer-over-read,
cvs-commit at gcc dot gnu.org <=