fix dbb3fbbb dwarf2.c breakage

m68hc11-elf  +FAIL: 68HC12 indexed addressing mode with 5, 9 and 16-bit offsets (indexed12)
m68hc12-elf  +FAIL: 68HC12 indexed addressing mode with 5, 9 and 16-bit offsets (indexed12)

	* dwarf2.c (read_rangelist): Correct buffer overflow check
	Whitespace throughout file.
This commit is contained in:
Alan Modra
2015-02-15 19:02:46 +10:30
parent deef1eedc1
commit 62f8d21784
2 changed files with 17 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2015-02-15 Alan Modra <amodra@gmail.com>
* dwarf2.c (read_rangelist): Correct buffer overflow check
Whitespace throughout file.
2015-02-14 Alan Modra <amodra@gmail.com>
PR ld/17973

View File

@ -2421,7 +2421,7 @@ read_rangelist (struct comp_unit *unit, struct arange *arange,
bfd_vma high_pc;
/* PR 17512: file: 62cada7d. */
if (ranges_ptr + 2 * unit->addr_size >= ranges_end)
if (ranges_ptr + 2 * unit->addr_size > ranges_end)
return FALSE;
low_pc = read_address (unit, ranges_ptr, ranges_end);