aboutsummaryrefslogtreecommitdiff
path: root/libiberty/ChangeLog
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-01-31 14:36:31 +0000
committerNick Clifton <nickc@redhat.com>2022-01-31 14:36:31 +0000
commitf10f8617a302f45dae721eae0cd659911f03d864 (patch)
treecd6444637702f0c5d88e39fb8163fa3b07ad879e /libiberty/ChangeLog
parent9ff8aa7d418bc508dbd429576b93e30ed9dc5891 (diff)
downloadfsf-binutils-gdb-f10f8617a302f45dae721eae0cd659911f03d864.zip
fsf-binutils-gdb-f10f8617a302f45dae721eae0cd659911f03d864.tar.gz
fsf-binutils-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 'libiberty/ChangeLog')
-rw-r--r--libiberty/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 40611e5..de3a6ee 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,15 @@
+2022-01-31 Nick Clifton <nickc@redhat.com>
+
+ 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.
+
2022-01-15 Martin Sebor <msebor@redhat.com>
* regex.c: Suppress -Wuse-after-free.