projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f01568
)
PR28540, segmentation fault on NULL byte_get
author
Alan Modra
<amodra@gmail.com>
Thu, 4 Nov 2021 03:41:02 +0000
(14:11 +1030)
committer
Alan Modra
<amodra@gmail.com>
Thu, 4 Nov 2021 03:46:53 +0000
(14:16 +1030)
PR 28540
* objdump.c (dump_bfd): Don't attempt load_separate_debug_files
when byte_get is NULL.
binutils/objdump.c
patch
|
blob
|
history
diff --git
a/binutils/objdump.c
b/binutils/objdump.c
index 356e3ecd853ab16deb1cefd83a201783e66492f3..1bfb5c71e7a955f2926820107b0abd8e695933e6 100644
(file)
--- a/
binutils/objdump.c
+++ b/
binutils/objdump.c
@@
-4862,7
+4862,7
@@
dump_bfd (bfd *abfd, bool is_mainfile)
The test on is_mainfile is there because the chain of separate debug
info files is a global variable shared by all invocations of dump_bfd. */
- if (is_mainfile)
+ if (
byte_get != NULL &&
is_mainfile)
{
load_separate_debug_files (abfd, bfd_get_filename (abfd));