You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
814 B
27 lines
814 B
10 months ago
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||
|
From: Keith Seitz <keiths@redhat.com>
|
||
|
Date: Thu, 12 Oct 2023 15:16:40 -0400
|
||
|
Subject: gdb-rhel-4237-rust-demangler-recursion-limit-2of2.patch
|
||
|
|
||
|
;; Backport "Fix typo in recent code to add stack recursion limit to
|
||
|
;; the Rust demangler."
|
||
|
;; (Nick Clifton, RHEL-4327)
|
||
|
|
||
|
Fix typo in recent code to add stack recursion limit to the Rust demangler.
|
||
|
|
||
|
libiberty
|
||
|
* rust-demangle.c (demangle_const): Add a missing goto pass_return
|
||
|
at the end of the function.
|
||
|
|
||
|
diff --git a/libiberty/rust-demangle.c b/libiberty/rust-demangle.c
|
||
|
--- a/libiberty/rust-demangle.c
|
||
|
+++ b/libiberty/rust-demangle.c
|
||
|
@@ -1234,6 +1234,7 @@ demangle_const (struct rust_demangler *rdm)
|
||
|
PRINT (": ");
|
||
|
PRINT (basic_type (ty_tag));
|
||
|
}
|
||
|
+ goto pass_return;
|
||
|
|
||
|
fail_return:
|
||
|
rdm->errored = 1;
|