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

Description Chris Dumez 2021-07-09 08:44:11 PDT
Validate keys in ResourceLoadStatisticsDatabaseStore::findNotVeryPrevalentResources() before using them with HashMap, to avoid potential memory corruption.
Comment 1 Chris Dumez 2021-07-09 08:46:51 PDT
Created attachment 433218 [details]
Patch
Comment 2 EWS 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].
Comment 3 Radar WebKit Bug Importer 2021-07-09 09:56:16 PDT
<rdar://problem/80381595>