I finally managed to use gdb to step into Qt code, and what I’m seeing
in qTopLevelDomain() is that for e.g. "google.com" the sections are
correctly extracted as ["google", "com"], and the for loop calls into
qIsEffectiveTLD() for "com" (which should return true because "com" is
part of the list at
https://publicsuffix.org/list/public_suffix_list.dat), which itself
calls into containsTLDEntry(), which computes a chunk index and then
compares the entry to entries in that chunk. "com" is being compared to
two entries: "accident-prevention.aero" and "net.ag". Those two entries
are far apart in the generated table, so this doesn’t make much sense.
It looks like somehow the initial computation of the chunk in
containsTLDEntry() is broken.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1551145

Title:
  [regression] unit test failures after Qt update

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1551145/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to