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

Fix memory leak in SBE setField

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2023-04-03

    Description

      The early return in ByteCode::setField would lead to a memory leak. newTag, newVal would not be deleted. A value guard should be added.

      I don't think there is a way to pass setField a non-string field, so this isn't being hit, which is why we aren't seeing the issue in ASAN.

      Attachments

        Activity

          People

            amr.elhelw@mongodb.com Amr Elhelw
            matt.boros@mongodb.com Matt Boros
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: