diff options
author | Nick Clifton <nickc@redhat.com> | 2022-01-31 14:36:31 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-01-31 14:36:31 +0000 |
commit | f10f8617a302f45dae721eae0cd659911f03d864 (patch) | |
tree | cd6444637702f0c5d88e39fb8163fa3b07ad879e /gdb/mi/mi-getopt.c | |
parent | 9ff8aa7d418bc508dbd429576b93e30ed9dc5891 (diff) | |
download | gdb-f10f8617a302f45dae721eae0cd659911f03d864.zip gdb-f10f8617a302f45dae721eae0cd659911f03d864.tar.gz gdb-f10f8617a302f45dae721eae0cd659911f03d864.tar.bz2 |
Import patch from mainline GCC to fix an infinite recusion in the Rust demangler.
PR 98886
PR 99935
* rust-demangle.c (struct rust_demangler): Add a recursion
counter.
(demangle_path): Increment/decrement the recursion counter upon
entry and exit. Fail if the counter exceeds a fixed limit.
(demangle_type): Likewise.
(rust_demangle_callback): Initialise the recursion counter,
disabling if requested by the option flags.
Diffstat (limited to 'gdb/mi/mi-getopt.c')
0 files changed, 0 insertions, 0 deletions