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

Coverity analysis defect 121223: Wrapper object use after free

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Execution Team 2021-12-27

      Wrapper object use after free

      A use after free bug would occur if the internal pointer is used. An internal pointer of a wrapper object remains available after the object is freed
      /src/mongo/db/timeseries/bucket_compression.cpp:279: WRAPPER_ESCAPE 121223 Calling "get" which extracts wrapped state from local "tamperedData".
      /src/mongo/db/timeseries/bucket_compression.cpp:281: WRAPPER_ESCAPE 121223 The internal representation of local "tamperedData" escapes into "measurements.front().timeField", but is destroyed when it exits scope.

            Assignee:
            dan.larkin-york@mongodb.com Dan Larkin-York
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: