diff options
Diffstat (limited to 'binutils/strings.c')
-rw-r--r-- | binutils/strings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/strings.c b/binutils/strings.c index 67c601f..68c244c 100644 --- a/binutils/strings.c +++ b/binutils/strings.c @@ -370,6 +370,9 @@ strings_object_file (const char *file) static bfd_boolean strings_file (char *file) { + if (get_file_size (file) < 1) + return FALSE; + /* If we weren't told to scan the whole file, try to open it as an object file and only look at initialized data sections. If that fails, fall back to the |