[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:
parent
91918bb01f
commit
931a870606
@ -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
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user