[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>
This commit is contained in:
Benjamin Quorning 2025-01-15 21:48:14 +01:00 committed by git
parent 91918bb01f
commit 931a870606

View File

@ -34,7 +34,7 @@
* specifying a maximum depth to which we are allowed to recurse. * specifying a maximum depth to which we are allowed to recurse.
*/ */
#ifndef PRISM_DEPTH_MAXIMUM #ifndef PRISM_DEPTH_MAXIMUM
#define PRISM_DEPTH_MAXIMUM 1000 #define PRISM_DEPTH_MAXIMUM 10000
#endif #endif
/** /**