]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
segv in debug_write_type
authorAlan Modra <amodra@gmail.com>
Mon, 6 Oct 2025 02:31:19 +0000 (13:01 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 6 Oct 2025 03:01:31 +0000 (13:31 +1030)
commit049a70652a9a1cca7d3f3445f6d649fb125ecabd
tree87ab44796cc5bc45c992cad0ba3e613f9d4fcd2f
parent236cf2bf6089ba627723303bc530f7aa33640ab7
segv in debug_write_type

In commit 6c3458a8b7ee I claimed that u.kenum is always non-NULL,
which is true for debug_make_enum_type, but not for enums made by
debug_make_undefined_tagged_type.  Fix that oversight

PR 32829
* debug.c (debug_write_type): Handle NULL u.kenum.
(debug_type_samep): Likewise.
binutils/debug.c