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

Coverity analysis defect 121905: Freed internal location read

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • ALL
    • Security 2022-04-04

      Freed internal location read

      Reading from freed memory can cause wrong values to be read and crashes due to illegal memory accesses. Reads target of a freed internal pointer
      /src/mongo/db/matcher/implicit_validator.cpp:80: WRAPPER_ESCAPE 121905 Calling "back" which extracts wrapped state from "level->subobjs".
      /src/mongo/db/matcher/implicit_validator.cpp:80: WRAPPER_ESCAPE 121905 Assigning: "level" = "level->subobjs.back()".
      /src/mongo/db/matcher/implicit_validator.cpp:78: WRAPPER_ESCAPE 121905 Calling "push_back" invalidates the internal representation of "level->subobjs".
      /src/mongo/db/matcher/implicit_validator.cpp:80: WRAPPER_ESCAPE 121905 Using invalidated internal representation of "level->subobjs".

            Assignee:
            erwin.pe@mongodb.com Erwin Pe
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: