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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important 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)

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes