mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[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]
e098533ab4
Co-authored-by: Nony Dutton <nonydutton@gmail.com>
This commit is contained in:
parent
91918bb01f
commit
931a870606
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue