[Webkit-unassigned] [Bug 198065] New: [YARR] Properly handle RegExp's that require large ParenContext space

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 20 20:36:50 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=198065

            Bug ID: 198065
           Summary: [YARR] Properly handle RegExp's that require large
                    ParenContext space
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: msaboff at apple.com

In initParenContextFreeList() we use INT16_MAX to determine if we should create a ParenContext free list.  We should be using the VM::patternContextBufferSize, as that is the amount of memory we have available when executing the JIT'ed code.  We should also fail the compile instead of bailing out with a jump to the JIT code failure return as this could potentially save JIT memory that could be consumed by large RegExp functions that won't execute to completion due to their ParenContext size exceeding VM::patternContextBufferSize.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190521/b198de20/attachment.html>


More information about the webkit-unassigned mailing list