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

Fix memory leak in SBE setField

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • ALL
    • QE 2023-04-03

      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.

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

              Created:
              Updated:
              Resolved: