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

IndexWriter silently accepts broken payload

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.5, 8.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: