alpha-coff: unitialised read
* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Correct bfd_bread return value check.
This commit is contained in:
parent
8169954446
commit
89b599df37
|
@ -1,3 +1,8 @@
|
|||
2020-03-31 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Correct bfd_bread
|
||||
return value check.
|
||||
|
||||
2020-03-31 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* vms-alpha.c (image_write): Check bounds for sections without
|
||||
|
|
|
@ -2130,7 +2130,7 @@ alpha_ecoff_get_elt_at_filepos (bfd *archive, file_ptr filepos)
|
|||
n = dict[h];
|
||||
else
|
||||
{
|
||||
if (! bfd_bread (&n, (bfd_size_type) 1, nbfd))
|
||||
if (bfd_bread (&n, 1, nbfd) != 1)
|
||||
goto error_return;
|
||||
dict[h] = n;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue