#---------------------------------------------------------------------
# You need to modify these revision numbers for your update.
-old_gcc_revision=94bea5dd6c9a06ddb6244be1e5196ff5fbe2b186 # the revision of the previous update
-new_gcc_revision=7921bb4afcb7a3be8e10e63b10acfc2bfa477cae # the revision for this update
+old_gcc_revision=7921bb4afcb7a3be8e10e63b10acfc2bfa477cae # the revision of the previous update
+new_gcc_revision=a8290fb163443276c3df6b20024c6874f93c560c # the revision for this update
# Unless the organization of demangler related files has changed, no
# changes below this line should be necessary.
/* Compiler compatibility macros
- Copyright (C) 1991-2025 Free Software Foundation, Inc.
+ Copyright (C) 1991-2026 Free Software Foundation, Inc.
This file is part of the GNU C Library.
This program is free software; you can redistribute it and/or modify
/* Demangler for g++ V3 ABI.
- Copyright (C) 2003-2025 Free Software Foundation, Inc.
+ Copyright (C) 2003-2026 Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@wasabisystems.com>.
This file is part of the libiberty library, which is part of GCC.
/* Internal demangler interface for g++ V3 ABI.
- Copyright (C) 2003-2025 Free Software Foundation, Inc.
+ Copyright (C) 2003-2026 Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@wasabisystems.com>.
This file is part of the libiberty library, which is part of GCC.
/* Demangler for GNU C++
- Copyright (C) 1989-2025 Free Software Foundation, Inc.
+ Copyright (C) 1989-2026 Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.uucp)
Rewritten by Fred Fish (fnf@cygnus.com) for ARM and Lucid demangling
Modified by Satish Pai (pai@apollo.hp.com) for HP demangling
/* Demangler for the D programming language
- Copyright (C) 2014-2025 Free Software Foundation, Inc.
+ Copyright (C) 2014-2026 Free Software Foundation, Inc.
Written by Iain Buclaw (ibuclaw@gdcproject.org)
This file is part of the libiberty library.
/* Defs for interface to demanglers.
- Copyright (C) 1992-2025 Free Software Foundation, Inc.
+ Copyright (C) 1992-2026 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License
/* An abstract string datatype.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
+ Copyright (C) 1998-2026 Free Software Foundation, Inc.
Contributed by Mark Mitchell (mark@markmitchell.com).
This file is part of GNU CC.
/* An abstract string datatype.
- Copyright (C) 1998-2025 Free Software Foundation, Inc.
+ Copyright (C) 1998-2026 Free Software Foundation, Inc.
Contributed by Mark Mitchell (mark@markmitchell.com).
This file is part of GCC.
/* Demangler for the Rust programming language
- Copyright (C) 2016-2025 Free Software Foundation, Inc.
+ Copyright (C) 2016-2026 Free Software Foundation, Inc.
Written by David Tolnay (dtolnay@gmail.com).
Rewritten by Eduard-Mihai Burtescu (eddyb@lyken.rs) for v0 support.
return;
bound_lifetimes = parse_opt_integer_62 (rdm, 'G');
+ /* Reject implausibly large lifetime counts to prevent
+ resource exhaustion from crafted symbols (PR demangler/106641). */
+ if (bound_lifetimes > 1024)
+ {
+ rdm->errored = 1;
+ return;
+ }
if (bound_lifetimes > 0)
{
PRINT ("for<");
- for (i = 0; i < bound_lifetimes; i++)
+ for (i = 0; i < bound_lifetimes && !rdm->errored; i++)
{
if (i > 0)
PRINT (", ");
/* <ctype.h> replacement macros.
- Copyright (C) 2000-2025 Free Software Foundation, Inc.
+ Copyright (C) 2000-2026 Free Software Foundation, Inc.
Contributed by Zack Weinberg <zackw@stanford.edu>.
This file is part of the libiberty library.
/* <ctype.h> replacement macros.
- Copyright (C) 2000-2025 Free Software Foundation, Inc.
+ Copyright (C) 2000-2026 Free Software Foundation, Inc.
Contributed by Zack Weinberg <zackw@stanford.edu>.
This file is part of the libiberty library.