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

Valid IPv4 generates an invalid QHostAddress

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.12.0, 5.13.0
    • Network
    • None
    • Linux/X11, macOS

    Description

      Creating a QHostAddress from a valid IPv4 represented in dotted-decimal notation and prefixed with zeros(e.g. 172.029.002.056) generates an invalid QHostAddress(see hostaddress.zip example).

      Creating a QHostAddress from IP 172.29.2.56 results in a valid host address object, but creating a QHostAddress from 172.029.002.056 results in a null host address object.

      Attachments

        1. hostaddress.zip
          2 kB
        2. screenshot-1.png
          screenshot-1.png
          22 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            iuliuh Iuliu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes