mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
Made sure that every call to bfd_read, bfd_write, and bfd_seek
checks the return value and handled bfd_error correctly. These changes are not itemised.
This commit is contained in:
@@ -130,7 +130,8 @@ hppabsd_core_core_file_p (abfd)
|
||||
val = bfd_read ((void *) &u, 1, sizeof u, abfd);
|
||||
if (val != sizeof u)
|
||||
{
|
||||
bfd_set_error (bfd_error_wrong_format);
|
||||
if (bfd_get_error () != bfd_error_system_call)
|
||||
bfd_set_error (bfd_error_wrong_format);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user