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

IndexWriter silently accepts broken payload

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: master (8.0), 7.5
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      IndexWriter seems to be missing bounds checks for payloads completely.

      If you pass a "broken" payload (e.g. BytesRef's offset + length is out of bounds), it will silently index it as if nothing went wrong. What actually happens? Doesn't matter, we should be getting an exception.

       

       

        Attachments

        1. LUCENE-8164_test.patch
          2 kB
          Robert Muir
        2. LUCENE-8164.patch
          1 kB
          Nhat Nguyen

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rcmuir Robert Muir
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: