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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Adrian Perez
Pull request: https://github.com/WebKit/WebKit/pull/40479
EWS
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
<rdar://problem/144712853>