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

Coverity analysis defect 101837: 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
    • Labels:
    • Fully Compatible
    • ALL
    • Sharding 2017-07-31

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

      Defect 101837 (STATIC_C)
      Checker WRAPPER_ESCAPE (subcategory none)
      File: /src/mongo/s/config_server_test_fixture.cpp
      Function mongo::ConfigServerTestFixture::setUp()
      /src/mongo/s/config_server_test_fixture.cpp, line: 118
      The internal representation of local "specialExec" escapes into "this->_executorForAddShard", but is destroyed when it exits scope.

                  _executorForAddShard = specialExec.get();
      

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: