Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7232

InetAddressPoint.newPrefixQuery is not correct when prefixLength is not a multiple of 8

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 6.0
    • 6.0.1, 6.1, 7.0
    • None
    • None
    • New

    Description

      The reason is that it applies masks on individual bytes in the wrong order: it goes from the lower bits to the upper bits instead of the opposite.

      Attachments

        1. LUCENE-7232.patch
          2 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: