Summary: | REGRESSION(r240634): Element::hasPointerCapture() passes a JS-controlled value directly into a HashMap as a key | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Antoine Quint <graouts> | ||||
Component: | DOM | Assignee: | Antoine Quint <graouts> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | achristensen, mmaxfield, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Antoine Quint
2019-03-13 10:26:00 PDT
Created attachment 364545 [details]
Patch
Comment on attachment 364545 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364545&action=review code looks good, needs better test. rs=me > LayoutTests/pointerevents/zero-pointer-id-crash-expected.txt:2 > +PASS Checking 0 can be used as a Pointer ID. You should also check INT_MAX, INT_MIN, INT_MAX + 1, INT_MIN - 1 (In reply to Alex Christensen from comment #3) > Comment on attachment 364545 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=364545&action=review > > code looks good, needs better test. rs=me > > > LayoutTests/pointerevents/zero-pointer-id-crash-expected.txt:2 > > +PASS Checking 0 can be used as a Pointer ID. > > You should also check INT_MAX, INT_MIN, INT_MAX + 1, INT_MIN - 1 Will fix in commit. Committed r242893: <https://trac.webkit.org/changeset/242893> Committed r243235: <https://trac.webkit.org/changeset/243235> |