mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
PR25840, Null pointer dereference in objdump
PR 25840 * debug.c (debug_class_type_samep): Don't segfault on NULL type.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2020-04-17 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR 25840
|
||||
* debug.c (debug_class_type_samep): Don't segfault on NULL type.
|
||||
|
||||
2020-04-16 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* doc/binutils.texi: Mention --no-show-raw-insn in objdump
|
||||
|
@ -3277,6 +3277,8 @@ debug_class_type_samep (struct debug_handle *info, struct debug_type_s *t1,
|
||||
names, since that sometimes fails in the presence of
|
||||
typedefs and we really don't care. */
|
||||
if (strcmp (f1->name, f2->name) != 0
|
||||
|| f1->type == NULL
|
||||
|| f2->type == NULL
|
||||
|| ! debug_type_samep (info,
|
||||
debug_get_real_type ((void *) info,
|
||||
f1->type, NULL),
|
||||
|
Reference in New Issue
Block a user