From 931a870606f4e286a1c7bacf022940994f3c431b Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Wed, 15 Jan 2025 21:48:14 +0100 Subject: [PATCH] [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 --- prism/defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prism/defines.h b/prism/defines.h index 26a3d8ea8e..e31429c789 100644 --- a/prism/defines.h +++ b/prism/defines.h @@ -34,7 +34,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 /**