]> granicus.if.org Git - clang/commit
[libclang] Fix use-after-free bug when handling attributes indexing info.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 31 Mar 2012 01:14:06 +0000 (01:14 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 31 Mar 2012 01:14:06 +0000 (01:14 +0000)
commitd786f1a6331246e7d0eedde277f126ab92089eeb
tree69e9b9748978d88f64616402b73fb7805ca67f15
parent86cff6080ba1db907009885adb5c6c64007e8b48
[libclang] Fix use-after-free bug when handling attributes indexing info.

When indexing a property with a getter/setter with attributes, the allocated memory
for AttrListInfo could get released before its destructor is run.

Fixes rdar://11113442.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153792 91177308-0d34-0410-b5e6-96231b3b80d8
test/Index/index-attrs.m
tools/libclang/IndexingContext.cpp
tools/libclang/IndexingContext.h