• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisionca3f923f82a079dcf441419f4a50a50f8b4b33c2 (tree)
Time2020-04-17 10:26:01
AuthorAlan Modra <amodra@gmai...>
CommiterAlan Modra

Log Message

PR25840, Null pointer dereference in objdump

PR 25840
* debug.c (debug_class_type_samep): Don't segfault on NULL type.

Change Summary

Incremental Difference

--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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+
16 2020-04-16 Alan Modra <amodra@gmail.com>
27
38 * doc/binutils.texi: Mention --no-show-raw-insn in objdump
--- a/binutils/debug.c
+++ b/binutils/debug.c
@@ -3277,6 +3277,8 @@ debug_class_type_samep (struct debug_handle *info, struct debug_type_s *t1,
32773277 names, since that sometimes fails in the presence of
32783278 typedefs and we really don't care. */
32793279 if (strcmp (f1->name, f2->name) != 0
3280+ || f1->type == NULL
3281+ || f2->type == NULL
32803282 || ! debug_type_samep (info,
32813283 debug_get_real_type ((void *) info,
32823284 f1->type, NULL),