2009-03-12 Andrew Stubbs <ams@codesourcery.com>

* dwarf2.c (read_section): Always check the offset, even when the
	section has been read before.
This commit is contained in:
Andrew Stubbs
2009-03-12 10:57:18 +00:00
parent e671f9d32e
commit 53638231ad
2 changed files with 43 additions and 38 deletions

View File

@ -1,3 +1,8 @@
2009-03-12 Andrew Stubbs <ams@codesourcery.com>
* dwarf2.c (read_section): Always check the offset, even when the
section has been read before.
2009-03-11 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in

View File

@ -417,9 +417,8 @@ read_section (bfd * abfd,
bfd_boolean section_is_compressed = FALSE;
/* read_section is a noop if the section has already been read. */
if (*section_buffer)
return TRUE;
if (!*section_buffer)
{
msec = bfd_get_section_by_name (abfd, section_name);
if (! msec && compressed_section_name)
{
@ -461,6 +460,7 @@ read_section (bfd * abfd,
return FALSE;
}
}
}
/* It is possible to get a bad value for the offset into the section
that the client wants. Validate it here to avoid trouble later. */