Coverity analysis defect 121905: Freed internal location read

XMLWordPrintableJSON

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

      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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: