stack overflow in debug_write_type
authorAlan Modra <amodra@gmail.com>
Tue, 9 May 2023 07:41:46 +0000 (17:11 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 9 May 2023 07:41:46 +0000 (17:11 +0930)
commit55a75aae9d971d3d0f49884e3954ac4794559542
tree437fd2113eddbf90b85a864f89e4b10962d3e76a
parent06ba6be629959ebbb4d0dbeedc4c0413cf60e249
stack overflow in debug_write_type

Another fuzzer attack.  This one was a "set" with elements using an
indirect type pointing back at the set.  The existing recursion check
only prevented simple recursion.

* debug.c (struct debug_type_s): Add mark.
(debug_write_type): Set mark and check before recursing into
indirect types.
binutils/debug.c