Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-108103

QHostAddress::isEqual() with IPv6 determines valid ip to be any

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.12, 6.2.7, 6.4.2, 6.5.0 Beta1
    • 5.8.0, 5.15.11, 6.4.0
    • Network
    • None
    • All
    • 4d3f5ac0cc (qt/qtbase/dev) 4d3f5ac0cc (qt/tqtc-qtbase/dev) 2c5bab7614 (qt/tqtc-qtbase/6.2) 43f9f953bc (qt/qtbase/6.4) 43f9f953bc (qt/tqtc-qtbase/6.4) 046cfa3e64 (qt/tqtc-qtbase/5.15)

    Description

      QHostAddress("2a02:3033:41e:fee6:ccc:1b19:2605:3745").isEqual(QHostAddress::Any) returns true since internally, isEqual only checks the values of QHostAddress::Any but completely ignores to what it should compare.

      There seem to be also no test cases for such checks.

      Attachments

        For Gerrit Dashboard: QTBUG-108103
        # Subject Branch Project Status CR V

        Activity

          People

            manordheim MÃ¥rten Nordheim
            theoriginalgri Christoph Keller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes