]> granicus.if.org Git - clang/commit
[index] Fix issue with protocol name locations in conformance list of an ObjC class...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 9 Nov 2016 02:47:07 +0000 (02:47 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 9 Nov 2016 02:47:07 +0000 (02:47 +0000)
commita70b01bf32d5d6e1908deb60ea3c5e13faf4268a
treebebeee81fb11c9c084b5c46a49220796fb7d80d5
parent150955a753da265e4bf1870291295489a5046822
[index] Fix issue with protocol name locations in conformance list of an ObjC class when they come from a typedef.

The ObjC class protocol list assumes there is an associated location for each protocol but no location is provided
when the protocol list comes from a typedef, and we end up with a buffer overflow when trying to get locations for the protocol names.

Fixes crash of rdar://28980278.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286331 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Parse/ParseObjc.cpp
lib/Sema/SemaDeclObjC.cpp
test/Index/Core/index-source.m