]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix a failure in the libiberty testsuite by increasing the recursion limit to 2048.
authorNick Clifton <nickc@redhat.com>
Tue, 11 Dec 2018 12:01:15 +0000 (12:01 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Dec 2018 12:01:15 +0000 (12:01 +0000)
PR 88409
include * demangle.h (DEMANGLE_RECURSION_LIMIT): Increase to 2048.

binutils* NEWS: Note that recursion limit has increased to 2048.
* doc/binutils.texi: Likewise.

binutils/ChangeLog
binutils/NEWS
binutils/doc/binutils.texi
include/ChangeLog
include/demangle.h

index a5796a8cf90cfab88e5e68cd3c2a554a849f096c..a1fce1adc5888be409f4acb9746326e33570b25a 100644 (file)
@@ -1,3 +1,8 @@
+2018-12-11  Nick Clifton  <nickc@redhat.com>
+
+       * NEWS: Note that recursion limit has increased to 2048.
+       * doc/binutils.texi: Likewise.
+
 2018-12-08  Alan Modra  <amodra@gmail.com>
 
        * strings.c (unget_part_char): New function.
index ce9253411acb6e6c029430a2f29bb0ca2397c2ea..6afa19db8098eb4e394b8e345e77ef32bc5f3528 100644 (file)
@@ -4,7 +4,7 @@
   maximum amount of recursion that is allowed whilst demangling strings.
   The value for this limit is defined by the DEMANGLE_RECRUSE_LIMIT
   constant declared in the include/demangle.h header file.  At the time
-  of writing this constant has the value of 1024.
+  of writing this constant has the value of 2048.
 
   The --no-recurse-limit option can be used to remove the limit, restoring
   the behaviour of earlier versions of these tools.  This may be needed in
index 7efda8648304c49c3ead43c53fd77fafdce3f530..34947d97ccbb29631997bf00310825ebc6e395da 100644 (file)
@@ -950,7 +950,7 @@ whilst demangling strings.  Since the name mangling formats allow for
 an inifinite level of recursion it is possible to create strings whose
 decoding will exhaust the amount of stack space available on the host
 machine, triggering a memory fault.  The limit tries to prevent this
-from happening by restricting recursion to 1024 levels of nesting.
+from happening by restricting recursion to 2048 levels of nesting.
 
 The default is for this limit to be enabled, but disabling it may be
 necessary in order to demangle truly complicated names.  Note however
@@ -2202,7 +2202,7 @@ whilst demangling strings.  Since the name mangling formats allow for
 an inifinite level of recursion it is possible to create strings whose
 decoding will exhaust the amount of stack space available on the host
 machine, triggering a memory fault.  The limit tries to prevent this
-from happening by restricting recursion to 1024 levels of nesting.
+from happening by restricting recursion to 2048 levels of nesting.
 
 The default is for this limit to be enabled, but disabling it may be
 necessary in order to demangle truly complicated names.  Note however
@@ -3555,7 +3555,7 @@ whilst demangling strings.  Since the name mangling formats allow for
 an inifinite level of recursion it is possible to create strings whose
 decoding will exhaust the amount of stack space available on the host
 machine, triggering a memory fault.  The limit tries to prevent this
-from happening by restricting recursion to 1024 levels of nesting.
+from happening by restricting recursion to 2048 levels of nesting.
 
 The default is for this limit to be enabled, but disabling it may be
 necessary in order to demangle truly complicated names.  Note however
@@ -3778,7 +3778,7 @@ whilst demangling strings.  Since the name mangling formats allow for
 an inifinite level of recursion it is possible to create strings whose
 decoding will exhaust the amount of stack space available on the host
 machine, triggering a memory fault.  The limit tries to prevent this
-from happening by restricting recursion to 1024 levels of nesting.
+from happening by restricting recursion to 2048 levels of nesting.
 
 The default is for this limit to be enabled, but disabling it may be
 necessary in order to demangle truly complicated names.  Note however
index 7cae69810ac99f99ed230f233363fdee637ae7b1..6ac2dd13e65f1392c55c47e56716d11737536308 100644 (file)
@@ -1,3 +1,8 @@
+2018-12-11  Nick Clifton  <nickc@redhat.com>
+
+       PR 88409
+       * demangle.h (DEMANGLE_RECURSION_LIMIT): Increase to 2048.
+
 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        * bfdlink.h (bfd_link_info): Add has_map_file.
index 1e67fe2fb349da386abc6cf6264617339854f8db..fadf7082c054416a8af985240b5db92008aeb30d 100644 (file)
@@ -77,7 +77,7 @@ extern "C" {
 /* If DMGL_NO_RECURSE_LIMIT is not enabled, then this is the value used as
    the maximum depth of recursion allowed.  It should be enough for any
    real-world mangled name.  */
-#define DEMANGLE_RECURSION_LIMIT 1024
+#define DEMANGLE_RECURSION_LIMIT 2048
   
 /* Enumeration of possible demangling styles.