Compare commits
No commits in common. 'i8c-beta' and 'c9-beta' have entirely different histories.
@ -1,10 +1,10 @@
|
|||||||
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
From: Nick Clifton <nickc@redhat.com>
|
From: Nick Clifton <nickc@redhat.com>
|
||||||
Date: Wed, 19 Oct 2022 15:09:12 +0100
|
Date: Wed, 19 Oct 2022 15:09:12 +0100
|
||||||
Subject: gdb-rhbz2153227-fail-if-sh_info-is-zero.patch
|
Subject: gdb-rhbz2153228-fail-if-sh_info-is-zero.patch
|
||||||
|
|
||||||
;; Backport "Fix an illegal memory access when parsing..."
|
;; Backport "Fix an illegal memory access when parsing..."
|
||||||
;; (Nick Clifton, RHBZ 2153227)
|
;; (Nick Clifton, RHBZ 2153228)
|
||||||
|
|
||||||
PR 29699
|
PR 29699
|
||||||
* elf.c (_bfd_elf_slurp_version_tables): Fail if the sh_info field
|
* elf.c (_bfd_elf_slurp_version_tables): Fail if the sh_info field
|
@ -1,26 +0,0 @@
|
|||||||
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;
|
|
@ -0,0 +1,23 @@
|
|||||||
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nick Clifton <nickc@redhat.com>
|
||||||
|
Date: Mon, 4 Jul 2022 16:31:18 +0100
|
||||||
|
Subject: libiberty-infinite-recursion-fix-2-of-2.patch
|
||||||
|
|
||||||
|
;; Backport Fix typo in recent code to add stack recursion limit to the Rust demangler.
|
||||||
|
;; (Nick Clifton)
|
||||||
|
|
||||||
|
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
|
||||||
|
@@ -1217,6 +1217,7 @@ demangle_const (struct rust_demangler *rdm)
|
||||||
|
PRINT (": ");
|
||||||
|
PRINT (basic_type (ty_tag));
|
||||||
|
}
|
||||||
|
+ goto pass_return;
|
||||||
|
|
||||||
|
fail_return:
|
||||||
|
rdm->errored = 1;
|
@ -0,0 +1,40 @@
|
|||||||
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
||||||
|
From: Guinevere Larsen <blarsen@redhat.com>
|
||||||
|
Date: Mon, 30 Oct 2023 12:48:01 +0100
|
||||||
|
Subject: libiberty-infinite-recursion-fix-3-of-3.patch
|
||||||
|
|
||||||
|
fix backport error in patch 1 of this series.
|
||||||
|
|
||||||
|
diff --git a/libiberty/rust-demangle.c b/libiberty/rust-demangle.c
|
||||||
|
--- a/libiberty/rust-demangle.c
|
||||||
|
+++ b/libiberty/rust-demangle.c
|
||||||
|
@@ -1082,6 +1082,18 @@ demangle_path_maybe_open_generics (struct rust_demangler *rdm)
|
||||||
|
if (rdm->errored)
|
||||||
|
return open;
|
||||||
|
|
||||||
|
+ if (rdm->recursion != RUST_NO_RECURSION_LIMIT)
|
||||||
|
+ {
|
||||||
|
+ ++ rdm ->recursion;
|
||||||
|
+ if (rdm->recursion > RUST_MAX_RECURSION_COUNT)
|
||||||
|
+ {
|
||||||
|
+ /* FIXME: there ought to be a way to report
|
||||||
|
+ that the recorsion limit has been reached. */
|
||||||
|
+ rdm->errored = 1;
|
||||||
|
+ goto end_of_func;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
if (eat (rdm, 'B'))
|
||||||
|
{
|
||||||
|
backref = parse_integer_62 (rdm);
|
||||||
|
@@ -1107,6 +1119,10 @@ demangle_path_maybe_open_generics (struct rust_demangler *rdm)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
demangle_path (rdm, 0);
|
||||||
|
+ end_of_func:
|
||||||
|
+ if (rdm->recursion != RUST_NO_RECURSION_LIMIT)
|
||||||
|
+ -- rdm->recursion;
|
||||||
|
+
|
||||||
|
return open;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in new issue