Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1319

InetAddressUtils.isIPv6HexCompressedAddress does not detect excess groups

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.2.3, 4.3 Alpha1
    • 4.2.4, 4.3 Final
    • None
    • None

    Description

      The IPV6 compressed format regex allows 0-6 hex groups before and after the ::.

      This does not detect too many groups (there should be at most 7 surrounding groups in total).
      It also allows no groups, i.e "::" which is not permitted AFAIK. Edit: this is allowed, see http://tools.ietf.org/html/rfc4291#section-2.2

      The first issue could be detected by counting the number of ':' characters in the string.
      There should be no more than 7 colons.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: