Project

General

Profile

Actions

Bug #21044

closed

Prism maximum recursion depth is 1_000, parse.y is 10_000

Added by kddnewton (Kevin Newton) about 8 hours ago. Updated about 8 hours ago.

Status:
Closed
Assignee:
Target version:
-
[ruby-core:120713]

Description

These should be aligned. This was because I misread the bison docs originally. Some folks are hitting this when trying to render Rails views too deeply.

Actions #1

Updated by bquorning (Benjamin Quorning) about 8 hours ago

  • Status changed from Open to Closed

Applied in changeset git|931a870606f4e286a1c7bacf022940994f3c431b.


[ruby/prism] Increase value of PRISM_DEPTH_MAXIMUM to 10000

The previous value of 1_000 was added with a reference to the Bison
parser1, but the value of YYMAXDEPTH in the Bison docs is 10_000,
not 1_000.

Fixes [Bug #21044]

https://github.com/ruby/prism/commit/e098533ab4

Co-authored-by: Nony Dutton

  1. https://www.gnu.org/software/bison/manual/html_node/Memory-Management.html

Actions

Also available in: Atom PDF

Like0
Like0