projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
daily update
[deliverable/binutils-gdb.git]
/
bfd
/
libbfd.c
diff --git
a/bfd/libbfd.c
b/bfd/libbfd.c
index 33d9c017ab63f336f3eeb673d7caa28555763a5f..bf49a2e1db14671145790ef88433016f394f28df 100644
(file)
--- a/
bfd/libbfd.c
+++ b/
bfd/libbfd.c
@@
-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.023246 seconds
and
4
git commands to generate.