GNU Binutils with patches for OS216
Revision | ca3f923f82a079dcf441419f4a50a50f8b4b33c2 (tree) |
---|---|
Time | 2020-04-17 10:26:01 |
Author | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
PR25840, Null pointer dereference in objdump
PR 25840
* debug.c (debug_class_type_samep): Don't segfault on NULL type.
@@ -1,3 +1,8 @@ | ||
1 | +2020-04-17 Alan Modra <amodra@gmail.com> | |
2 | + | |
3 | + PR 25840 | |
4 | + * debug.c (debug_class_type_samep): Don't segfault on NULL type. | |
5 | + | |
1 | 6 | 2020-04-16 Alan Modra <amodra@gmail.com> |
2 | 7 | |
3 | 8 | * 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, | ||
3277 | 3277 | names, since that sometimes fails in the presence of |
3278 | 3278 | typedefs and we really don't care. */ |
3279 | 3279 | if (strcmp (f1->name, f2->name) != 0 |
3280 | + || f1->type == NULL | |
3281 | + || f2->type == NULL | |
3280 | 3282 | || ! debug_type_samep (info, |
3281 | 3283 | debug_get_real_type ((void *) info, |
3282 | 3284 | f1->type, NULL), |