potential out of bounds read in prefetchRecordPages()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.2.1, 2.3.0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It looks like prefetchRecordPages() can read one byte past the end of a matching document:

                          // hit the last page, in case we missed it above
                          _dummy_char += *(result.objdata() + result.objsize());
      

      I think one byte past the end of a document might not be in mapped memory, since I don't think the file, extent, or record structures have footers.

              Assignee:
              Eric Milkie
              Reporter:
              Aaron Staple (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: