* dwarf2read.c (dwarf2_build_psymtabs_hard): Check cu_header.length is
within dwarf_info_buffer not dwarf_abbrev_buffer.
This commit is contained in:
parent
27be012212
commit
760410e55a
|
@ -1,3 +1,9 @@
|
||||||
|
Wed Dec 10 15:54:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dwarf2_build_psymtabs_hard): Check
|
||||||
|
cu_header.length is within dwarf_info_buffer not
|
||||||
|
dwarf_abbrev_buffer.
|
||||||
|
|
||||||
Mon Dec 8 15:51:45 1997 Keith Seitz <keiths@onions.cygnus.com>
|
Mon Dec 8 15:51:45 1997 Keith Seitz <keiths@onions.cygnus.com>
|
||||||
|
|
||||||
* gdbtk.c (gdb_get_tracepoint_info): use info in struct
|
* gdbtk.c (gdb_get_tracepoint_info): use info in struct
|
||||||
|
|
|
@ -937,9 +937,10 @@ dwarf2_build_psymtabs_hard (objfile, section_offsets, mainline)
|
||||||
error ("Dwarf Error: bad offset in compilation unit header.");
|
error ("Dwarf Error: bad offset in compilation unit header.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (cu_header.length > dwarf_abbrev_size - cu_header.abbrev_offset)
|
if (beg_of_comp_unit + cu_header.length + 4
|
||||||
|
>= dwarf_info_buffer + dwarf_info_size)
|
||||||
{
|
{
|
||||||
error ("Dwarf Error: bad length in compilation unit header.");
|
error ("Dwarf Error: bad length in compilation unit header.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue