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

Valid IPv4 generates an invalid QHostAddress

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 5.12.0, 5.13.0
    • Fix Version/s: None
    • Component/s: Network
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            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