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

Coverity analysis defect 101485: Wrapper object use after free

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • Sharding 2017-05-08

      An internal pointer of a wrapper object remains available after the object is freed

      Defect 101485 (STATIC_C)
      Checker WRAPPER_ESCAPE (subcategory none)
      File: /src/mongo/s/sharding_test_fixture.cpp
      Function mongo::ShardingTestFixture::setUp()
      /src/mongo/s/sharding_test_fixture.cpp, line: 132
      The internal representation of local "fixedExec" escapes into "this->_executor", but is destroyed when it exits scope.

              _executor = fixedExec.get();
      

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: