diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-02-19 02:56:55 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-02-19 02:56:55 +0000 |
| commit | 720a8471e8da74807971b52f3f239950df069805 (patch) | |
| tree | 6d379b9c9ef5ead5822e183e31436ec22feccf9e /lib/Basic/FileSystemStatCache.cpp | |
| parent | 182109a097267d9d2e90fa6235e4da4a09f86ad8 (diff) | |
| download | clang-720a8471e8da74807971b52f3f239950df069805.tar.gz clang-720a8471e8da74807971b52f3f239950df069805.tar.bz2 clang-720a8471e8da74807971b52f3f239950df069805.tar.xz | |
CIndex: initialise TU
TU is not guaranteed to be initialised in all cases. In particular if CIdx or
ast_filename is NULL (or if &TU is NULL), then clang_createTranslationUnit2 will
not initialise the out parameter out_TU. This is followed by an assertion check
which may perform a branch based on unitialised memory.
Caught by scan-build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileSystemStatCache.cpp')
0 files changed, 0 insertions, 0 deletions
