aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-06-26 09:24:49 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-06-26 09:30:20 -0700
commit0630b49c470ca2e3c3f74da4c7e4ff63440dd71f (patch)
tree25a1dd82b803549a5cc0c33d417ae6d63dadd2d9 /bfd/ChangeLog
parent515a4464176efc6ac31c83bd40b5c67f61c3b044 (diff)
downloadgdb-0630b49c470ca2e3c3f74da4c7e4ff63440dd71f.zip
gdb-0630b49c470ca2e3c3f74da4c7e4ff63440dd71f.tar.gz
gdb-0630b49c470ca2e3c3f74da4c7e4ff63440dd71f.tar.bz2
Check file size before getting section contents
Don't check the section size in bfd_get_full_section_contents since the size of a decompressed section may be larger than the file size. Instead, check file size in _bfd_generic_get_section_contents. PR binutils/21665 * compress.c (bfd_get_full_section_contents): Don't check the file size here. * libbfd.c (_bfd_generic_get_section_contents): Check for and reject a section whoes size + offset is greater than the size of the entire file. (_bfd_generic_get_section_contents_in_window): Likewise.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog10
1 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ee926c6..e088cdc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,4 +1,12 @@
-2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
+2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/21665
+ * compress.c (bfd_get_full_section_contents): Don't check the
+ file size here.
+ * libbfd.c (_bfd_generic_get_section_contents): Check for and
+ reject a section whoes size + offset is greater than the size
+ of the entire file.
+ (_bfd_generic_get_section_contents_in_window): Likewise.
2017-06-26 Nick Clifton <nickc@redhat.com>