summaryrefslogtreecommitdiff
path: root/include/ruby/internal
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2023-06-30 19:37:53 -0700
committerGitHub <noreply@github.com>2023-06-30 19:37:53 -0700
commit1bc8838d60ef3fc6812d3b64ed87caaf0ae943d9 (patch)
treebb705036e9357d0bd70e64d3f5e86192761fd41c /include/ruby/internal
parent41779fede04d730f94690ddc9f2b36a4ff73ddb0 (diff)
Handle unterminated unicode escapes in regexps
This fixes an infinite loop possible after ec3542229b29ec93062e9d90e877ea29d3c19472. For \u{} escapes in regexps, skip validation in the parser, and rely on the regexp code to handle validation. This is necessary so that invalid unicode escapes in comments in extended regexps are allowed. Fixes [Bug #19750] Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8003 Merged-By: jeremyevans <code@jeremyevans.net>
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions