daily update
[deliverable/binutils-gdb.git] / bfd / libbfd.c
index 33d9c017ab63f336f3eeb673d7caa28555763a5f..bf49a2e1db14671145790ef88433016f394f28df 100644 (file)
@@ -820,7 +820,8 @@ _bfd_generic_get_section_contents (bfd *abfd,
     return TRUE;
 
   sz = section->rawsize ? section->rawsize : section->size;
-  if (offset + count > sz)
+  if (offset + count < count
+      || offset + count > sz)
     {
       bfd_set_error (bfd_error_invalid_operation);
       return FALSE;
This page took 0.02273 seconds and 4 git commands to generate.