[Webkit-unassigned] [Bug 187042] RegExp.exec returns wrong value with a long integer quantifier

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 1 09:39:49 PDT 2018


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

--- Comment #6 from Saam Barati <sbarati at apple.com> ---
Comment on attachment 344050
  --> https://bugs.webkit.org/attachment.cgi?id=344050
Fix tests

View in context: https://bugs.webkit.org/attachment.cgi?id=344050&action=review

>> Source/JavaScriptCore/yarr/YarrParser.h:987
>> +            n = n * 10 + nextDigit;
> 
> Let’s just use Checked<unsigned> for n

We can then return UINT_MAX if that overflows

-- 
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/20180701/cfe49623/attachment.html>


More information about the webkit-unassigned mailing list