Repeat path canonicalization in ContentSettingsPattern::Builder
The fuzzer discovered an input that uncovers non-idempotency in ContentSettingsPattern::Builder::Canonicalize. First, the function changes |parts->path| from "/.//" to "//". On a second call, the "//" is changed to "/". This CL repeats the path canonicalization until we reach a fixed point. Bug: 1117622, 1132957, 1128999 Change-Id: I96da902e50a4a9b654a7d4184ef4ad2c0689e705 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2406332 Commit-Queue: Balazs Engedy <engedy@chromium.org> Reviewed-by:Balazs Engedy <engedy@chromium.org> Cr-Commit-Position: refs/heads/master@{#811717}
Showing
Please register or sign in to comment