Add a missing line to _bfd_generic_get_section_contents_in_window
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 26 Jun 2017 22:47:16 +0000 (15:47 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 26 Jun 2017 22:47:16 +0000 (15:47 -0700)
PR binutils/21665
* libbfd.c (_bfd_generic_get_section_contents_in_window): Add
a missing line.

bfd/ChangeLog
bfd/libbfd.c

index cd5cb57..fbe2049 100644 (file)
@@ -1,3 +1,9 @@
+2017-06-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR binutils/21665
+       * libbfd.c (_bfd_generic_get_section_contents_in_window): Add
+       a missing line.
+
 2017-06-26  Maciej W. Rozycki  <macro@imgtec.com>
 
        * cpu-mips.c (arch_info_struct): Mark the 4010 32-bit.
index b903328..7b270ef 100644 (file)
@@ -877,6 +877,7 @@ _bfd_generic_get_section_contents_in_window
   else
     sz = section->size;
   filesz = bfd_get_file_size (abfd);
+  if (filesz < 0)
     {
       /* This should never happen.  */
       abort ();