Summary: | String.match should defend against matches that would crash the VM | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Filip Pizlo <fpizlo> | ||||
Component: | JavaScriptCore | Assignee: | Filip Pizlo <fpizlo> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | commit-queue, keith_miller, mark.lam, msaboff, oliver, saam | ||||
Priority: | P2 | ||||||
Version: | WebKit Nightly Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Filip Pizlo
2016-02-07 10:16:13 PST
Created attachment 270825 [details]
the patch
Comment on attachment 270825 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=270825&action=review LGTM > Source/JavaScriptCore/runtime/StringPrototype.cpp:1000 > + size_t maximumReasonableMatchSize = 1000000000; You could make this const. (In reply to comment #2) > Comment on attachment 270825 [details] > the patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=270825&action=review > > LGTM > > > Source/JavaScriptCore/runtime/StringPrototype.cpp:1000 > > + size_t maximumReasonableMatchSize = 1000000000; > > You could make this const. OK! Landed in http://trac.webkit.org/changeset/196240 |