[Webkit-unassigned] [Bug 255529] New: start variable should be checked before being passed to RegularExpression.match()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 17 09:42:20 PDT 2023


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

            Bug ID: 255529
           Summary: start variable should be checked before being passed
                    to RegularExpression.match()
           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: doremylover123 at gmail.com

The first iteration of regex.match is guaranteed to have start be less
than content.length(). This is because of the isEmpty check at the
beginning of the function, which means that the only time start should
be checked is when it changes. This also saves us a function call when
start is at the end of the content.

-- 
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/20230417/62c74f13/attachment.htm>


More information about the webkit-unassigned mailing list