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

Use-after-move in Helpers::findOne

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.2
    • None
    • Querying
    • None
    • Fully Compatible
    • ALL
    • Query 2018-02-12
    • 0

    Description

      In this code, we call qr->asFindCommand().toString() after qr has been moved. This can result in a segfault.

      Attachments

        Activity

          People

            ian.boros@mongodb.com Ian Boros
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: