mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-04 15:54:25 +08:00
1999-10-15 Andrew Haley <aph@cygnus.com>
* dwarf1.c (parse_die): Fail to parse a die if its length is zero.
This commit is contained in:
parent
68f8e33e59
commit
a67a877774
@ -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)
|
Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
|
* libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
|
||||||
|
@ -186,6 +186,8 @@ parse_die (abfd, aDieInfo, aDiePtr)
|
|||||||
/* First comes the length. */
|
/* First comes the length. */
|
||||||
aDieInfo->length = bfd_get_32 (abfd, xptr);
|
aDieInfo->length = bfd_get_32 (abfd, xptr);
|
||||||
xptr += 4;
|
xptr += 4;
|
||||||
|
if (aDieInfo->length == 0)
|
||||||
|
return false;
|
||||||
if (aDieInfo->length < 6)
|
if (aDieInfo->length < 6)
|
||||||
{
|
{
|
||||||
/* Just padding bytes. */
|
/* Just padding bytes. */
|
||||||
|
Loading…
Reference in New Issue
Block a user