Bug 287558

Summary: [SOUP] Check input size in PublicSuffixStore::platformTopPrivatelyControlledDomain()
Product: WebKit Reporter: Adrian Perez <aperez>
Component: WebCore Misc.Assignee: Adrian Perez <aperez>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 266396    

Adrian Perez
Reported 2025-02-12 04:38:46 PST
Instead of manually skipping over leading period characters, the function could use StringView::startsWith(), which also checks the string length, and discard the leading periods with StringView::substring().
Attachments
Adrian Perez
Comment 1 2025-02-12 04:55:41 PST
EWS
Comment 2 2025-02-12 10:51:47 PST
Committed 290281@main (cd8aacf3af68): <https://commits.webkit.org/290281@main> Reviewed commits have been landed. Closing PR #40479 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2025-02-12 10:52:18 PST
Note You need to log in before you can comment on or make changes to this bug.