[Webkit-unassigned] [Bug 159744] New: YARR uses mixture of int and unsigned values to index into subject string

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 13 15:39:53 PDT 2016


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

            Bug ID: 159744
           Summary: YARR uses mixture of int and unsigned values to index
                    into subject string
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: ASSIGNED
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: msaboff at apple.com

Both the YARR interpreter and the JIT use a mixture of unsigned and int offsets when referencing or generating code to reference subject strings.  Usually this works out due to 2's complement math, however there have been bugs reported where we underflow / overflow counts, reference out of bounds memory, or trying to generate code to do the same.

Instead we should make the YARR code "unsigned" clean for all references to subject strings.

This bug is in response to two radars:
    <rdar://problem/27084358> ASSERTION FAILED: (&term - term.atom.parenthesesWidth)->inputPosition == term.inputPosition
    <rdar://problem/27171689> REGRESSION (r197869): CrashOnOverflow in JSC::Yarr::YarrGenerator<(JSC::Yarr::YarrJITCompileMode)1>::generateCharacterClassFixed
The first is an issue in the YARR interpreter and the second in the YARR JIT.

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


More information about the webkit-unassigned mailing list