mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
* ar.c (open_inarch): Check fwrite return. Use size_t.
(extract_file): Likewise. Remove test for "negative" file size. * readelf.c (process_program_headers): Check fscanf return.
This commit is contained in:
@@ -3520,7 +3520,8 @@ process_program_headers (FILE *file)
|
||||
error (_("Internal error: failed to create format string to display program interpreter"));
|
||||
|
||||
program_interpreter[0] = 0;
|
||||
fscanf (file, fmt, program_interpreter);
|
||||
if (fscanf (file, fmt, program_interpreter) <= 0)
|
||||
error (_("Unable to read program interpreter name\n"));
|
||||
|
||||
if (do_segments)
|
||||
printf (_("\n [Requesting program interpreter: %s]"),
|
||||
|
||||
Reference in New Issue
Block a user