2007-07-26 Michael Snyder <msnyder@access-company.com>
* srec.c (srec_scan): Check for EOF (critical because return value will be used as array index).
This commit is contained in:
parent
44c62d9e24
commit
3d7b34d85b
@ -1,5 +1,8 @@
|
|||||||
2007-07-26 Michael Snyder <msnyder@access-company.com>
|
2007-07-26 Michael Snyder <msnyder@access-company.com>
|
||||||
|
|
||||||
|
* srec.c (srec_scan): Check for EOF (critical because return value
|
||||||
|
will be used as array index).
|
||||||
|
|
||||||
* coffgen.c (_bfd_coff_read_internal_relocs): If internal_relocs
|
* coffgen.c (_bfd_coff_read_internal_relocs): If internal_relocs
|
||||||
are not to be cached, free the temporary buffer.
|
are not to be cached, free the temporary buffer.
|
||||||
|
|
||||||
|
@ -428,6 +428,11 @@ srec_scan (bfd *abfd)
|
|||||||
symval <<= 4;
|
symval <<= 4;
|
||||||
symval += NIBBLE (c);
|
symval += NIBBLE (c);
|
||||||
c = srec_get_byte (abfd, &error);
|
c = srec_get_byte (abfd, &error);
|
||||||
|
if (c == EOF)
|
||||||
|
{
|
||||||
|
srec_bad_byte (abfd, lineno, c, error);
|
||||||
|
goto error_return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! srec_new_symbol (abfd, symname, symval))
|
if (! srec_new_symbol (abfd, symname, symval))
|
||||||
|
Loading…
Reference in New Issue
Block a user