summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2025-02-13 21:06:07 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2025-02-13 21:06:07 -0800
commit579b94ae61d123dfb06caa2499be4ef6879cbf1f (patch)
tree322b38112c723ad87d59a02245ceafdeaa4730c7
parentbc359b9971088ff921e26346f395c70640654e9e (diff)
merge revision(s) 931a870606f4e286a1c7bacf022940994f3c431b: [Backport #21044]
[ruby/prism] Increase value of PRISM_DEPTH_MAXIMUM to 10000 The previous value of 1_000 was added with a reference to the Bison parser[^1], but the value of YYMAXDEPTH in the Bison docs is 10_000, not 1_000. [^1]: https://www.gnu.org/software/bison/manual/html_node/Memory-Management.html Fixes [Bug #21044] https://github.com/ruby/prism/commit/e098533ab4 Co-authored-by: Nony Dutton <nonydutton@gmail.com>
-rw-r--r--prism/defines.h2
-rw-r--r--version.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/prism/defines.h b/prism/defines.h
index f7bb2120c4..0e67ff5221 100644
--- a/prism/defines.h
+++ b/prism/defines.h
@@ -31,7 +31,7 @@
* specifying a maximum depth to which we are allowed to recurse.
*/
#ifndef PRISM_DEPTH_MAXIMUM
- #define PRISM_DEPTH_MAXIMUM 1000
+ #define PRISM_DEPTH_MAXIMUM 10000
#endif
/**
diff --git a/version.h b/version.h
index 1b55a38786..37ee535473 100644
--- a/version.h
+++ b/version.h
@@ -11,7 +11,7 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
-#define RUBY_PATCHLEVEL 12
+#define RUBY_PATCHLEVEL 13
#include "ruby/version.h"
#include "ruby/internal/abi.h"