Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-79225

Failed SBE collection lookup can cause a null pointer dereference

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2023-09-18, QE 2023-10-02, QE 2023-10-16

    Description

      MultipleCollectionAccessor::lookupCollection can return a null pointer when the collection is not found.  When this gets passed into an SBE generateCollScan call, this null pointer gets passed down to generateGenericCollScan and dereferenced (or generateClusteredCollScan and dereferenced), causing a null pointer exception.  This can happen with other 
      getCurrentCollection calls as well; here is an example with generateIndexScan.

      Attachments

        Activity

          People

            mihai.andrei@mongodb.com Mihai Andrei
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: