Bug 227842 - Validate keys in ResourceLoadStatisticsDatabaseStore::findNotVeryPrevalentResources() before using them with HashMap
Summary: Validate keys in ResourceLoadStatisticsDatabaseStore::findNotVeryPrevalentRes...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-09 08:44 PDT by Chris Dumez
Modified: 2021-07-09 09:56 PDT (History)
5 users (show)

See Also:


Attachments
Patch (5.11 KB, patch)
2021-07-09 08:46 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>