[ 
https://issues.apache.org/jira/browse/KYLIN-6126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18144155#comment-18144155
 ] 

ASF subversion and git services commented on KYLIN-6126:
--------------------------------------------------------

Commit 4a6dbe1716095263d515e86ddd4ff5207759abaa in kylin's branch 
refs/heads/kylin5 from Li Yang
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=4a6dbe1716 ]

KYLIN-6126 bound SQL expression parser depth


> Potential stack exhaustion issue in SQL expression parsers
> ----------------------------------------------------------
>
>                 Key: KYLIN-6126
>                 URL: https://issues.apache.org/jira/browse/KYLIN-6126
>             Project: Kylin
>          Issue Type: Bug
>    Affects Versions: 5.0.5
>            Reporter: liyang
>            Assignee: liyang
>            Priority: Major
>             Fix For: 5.0.6
>
>
> Deeply nested parenthesized SQL causes unbounded recursive calls in the SQL 
> whitespace and escape normalization parsers. A caller-controlled query can 
> exhaust the JVM stack before normal SQL validation completes.
> Fix direction: enforce a conservative maximum expression nesting depth in 
> both parser grammars and fail with a parse exception before recursion reaches 
> the stack limit.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to