projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68f8e33
)
1999-10-15 Andrew Haley <aph@cygnus.com>
author
Andrew Haley
<aph@redhat.com>
Mon, 18 Oct 1999 12:45:21 +0000
(12:45 +0000)
committer
Andrew Haley
<aph@redhat.com>
Mon, 18 Oct 1999 12:45:21 +0000
(12:45 +0000)
* dwarf1.c (parse_die): Fail to parse a die if its length is zero.
bfd/ChangeLog
patch
|
blob
|
history
bfd/dwarf1.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 134f41d53e9611df3bcabb11f09b5a0880c5d917..640ec8d621c53ac624f907af30a1e88247c1b0ba 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,7
@@
+1999-10-15 Andrew Haley <aph@cygnus.com>
+
+ * dwarf1.c (parse_die): Fail to parse a die if its length is zero.
+
Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
* libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
diff --git
a/bfd/dwarf1.c
b/bfd/dwarf1.c
index 903bfc38ab5a631dad3054a2e4504f484ff92f9a..da184cc70589292806da12059441ead25c85ac24 100644
(file)
--- a/
bfd/dwarf1.c
+++ b/
bfd/dwarf1.c
@@
-186,6
+186,8
@@
parse_die (abfd, aDieInfo, aDiePtr)
/* First comes the length. */
aDieInfo->length = bfd_get_32 (abfd, xptr);
xptr += 4;
+ if (aDieInfo->length == 0)
+ return false;
if (aDieInfo->length < 6)
{
/* Just padding bytes. */