]> granicus.if.org Git - clang/commit
[libclang] Workaround potential race condition with code completion AllocatedResults...
authorTed Kremenek <kremenek@apple.com>
Wed, 17 Aug 2011 22:19:53 +0000 (22:19 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 17 Aug 2011 22:19:53 +0000 (22:19 +0000)
commitbaf82b0fdf5c23dff80660add40bb92bd850bba0
tree701baae8dd34f96d3097c80976f9ed196693f16e
parent0a7efe1142d241678c91bf93ee6adb51289863a4
[libclang] Workaround potential race condition with code completion AllocatedResults being freed after a CXTranslationUnit.

The Container USR's CXString had its underlying data owned by the CXTranslationUnit's string pool.  This
would result in trying to access freed memory.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137887 91177308-0d34-0410-b5e6-96231b3b80d8
tools/libclang/CIndexCodeCompletion.cpp
tools/libclang/CXString.cpp
tools/libclang/CXString.h