summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brüning <michael.bruning@qt.io>2020-03-16 17:40:37 +0100
committerMichael Brüning <michael.bruning@qt.io>2020-03-16 16:51:21 +0000
commitf7ffd2f7dffd911e37f6a638bb410bd71da23491 (patch)
tree9c8009c939e168cf37ef495a5a4a761c8a8ed085
parent4af826b4d3512f93c6aaf891c9e4434da0f8a7f6 (diff)
downloadqtwebengine-chromium-f7ffd2f7dffd911e37f6a638bb410bd71da23491.tar.gz
Fixup for [Backport] CVE-2020-6401 (2/3)
b88a10e7a666792cc8a2d9a9310748a79b1f032b accidentally removed a return statement. Add it again. Change-Id: I358f7929b42779e2bea64dcb306884d484cb2743 Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
-rw-r--r--chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc b/chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc
index 6afb8b9e736..f707e780d76 100644
--- a/chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc
+++ b/chromium/components/url_formatter/spoof_checks/idn_spoof_checker.cc
@@ -316,6 +316,7 @@ bool IDNSpoofChecker::SafeToDisplayAsUnicode(
// Disallow Icelandic confusables for domains outside Iceland's ccTLD (.is).
if (label_string.length() > 1 && top_level_domain != "is" &&
icelandic_characters_.containsSome(label_string))
+ return false;
// Disallow Latin Schwa (U+0259) for domains outside Azerbaijan's ccTLD (.az).
if (label_string.length() > 1 && top_level_domain != "az" &&