Fix handling of same-skeleton domains in IDN spoof checker
A previous fix for bug 898343 attempted to handle skeletons that are the same as their domains (e.g. test[.]net). The fix introduced an early return which caused skeleton lookups to incorrectly match subtrings: If a domain name contained a top domain as its prefix, spoof checker assumed a skeleton match without checking if it reached the end of the search string (i.e. the skeleton being looked up). E.g. Skeleton of atést[.]net (atest[.]net) matched the skeleton of test[.]net (test[.]net). This CL properly checks that all of the search string is consumed before returning a match. Bug: 925199 Change-Id: Ia548ea686915463e0f93e6bce1bad5721f324821 Reviewed-on: https://chromium-review.googlesource.com/c/1437716 Commit-Queue: Mustafa Emre Acer <meacer@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#626867}
Showing
Please register or sign in to comment