Bug 227842

Summary: Validate keys in ResourceLoadStatisticsDatabaseStore::findNotVeryPrevalentResources() before using them with HashMap
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, katherine_cheney, kkinnunen, webkit-bug-importer, wilander
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Chris Dumez
Reported 2021-07-09 08:44:11 PDT
Validate keys in ResourceLoadStatisticsDatabaseStore::findNotVeryPrevalentResources() before using them with HashMap, to avoid potential memory corruption.
Attachments
Patch (5.11 KB, patch)
2021-07-09 08:46 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2021-07-09 08:46:51 PDT
EWS
Comment 2 2021-07-09 09:55:03 PDT
Committed r279787 (239554@main): <https://commits.webkit.org/239554@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 433218 [details].
Radar WebKit Bug Importer
Comment 3 2021-07-09 09:56:16 PDT
Note You need to log in before you can comment on or make changes to this bug.