projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix address violation issues encountered when parsing corrupt binaries.
[deliverable/binutils-gdb.git]
/
bfd
/
nlmcode.h
diff --git
a/bfd/nlmcode.h
b/bfd/nlmcode.h
index 6d6aed02c1012f5082671fcc7b2ebf323325e95c..350c83e12080397c4297121f48a54aa11c5e24dc 100644
(file)
--- a/
bfd/nlmcode.h
+++ b/
bfd/nlmcode.h
@@
-351,7
+351,9
@@
nlm_swap_auxiliary_headers_in (bfd *abfd)
bfd_byte *contents;
bfd_byte *p, *pend;
- BFD_ASSERT (hdrLength == 0 && hdr == NULL);
+ /* See PR 21840 for a reproducer. */
+ if (hdrLength != 0 || hdr != NULL)
+ return FALSE;
pos = bfd_tell (abfd);
if (bfd_seek (abfd, dataOffset, SEEK_SET) != 0)
This page took
0.025685 seconds
and
4
git commands to generate.