Coverity analysis defect 184143: Freed internal location read

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • 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
      /data/mci/b673a78b625a4b3a15632f024ff3485c/bazel_cache/1f0fda58881c2b7283532a6cb043a2ab/execroot/_main/src/mongo/db/query/compiler/rewrites/rule_based_rewriter.h:214: WRAPPER_ESCAPE 184143 Calling "back" which extracts wrapped state from "this->_queue".
      /data/mci/b673a78b625a4b3a15632f024ff3485c/bazel_cache/1f0fda58881c2b7283532a6cb043a2ab/execroot/_main/src/mongo/db/query/compiler/rewrites/rule_based_rewriter.h:214: WRAPPER_ESCAPE 184143 Assigning: "result" = "this->_queue.back()".
      /data/mci/b673a78b625a4b3a15632f024ff3485c/bazel_cache/1f0fda58881c2b7283532a6cb043a2ab/execroot/_main/src/mongo/db/query/compiler/rewrites/rule_based_rewriter.h:215: WRAPPER_ESCAPE 184143 Calling "pop_back" invalidates the internal representation of "this->_queue".
      /data/mci/b673a78b625a4b3a15632f024ff3485c/bazel_cache/1f0fda58881c2b7283532a6cb043a2ab/execroot/_main/src/mongo/db/query/compiler/rewrites/rule_based_rewriter.h:216: WRAPPER_ESCAPE 184143 Using invalidated internal representation of "this->_queue".

            Assignee:
            Henri Nikku
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: