]> granicus.if.org Git - clang/commit
[objcmt] Fix a buffer overflow crash than can occur while modernizing enums.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 15 Jul 2016 19:22:34 +0000 (19:22 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 15 Jul 2016 19:22:34 +0000 (19:22 +0000)
commit2527e4ee8fa744bcba4c3d3c914b2b5086fb4807
treef82ec113c505087f90d1dd208291e12088eed928
parent753944f52184ddf75318b5d3f1fd6a7a84587f60
[objcmt] Fix a buffer overflow crash than can occur while modernizing enums.

Note that due to the nature of the crash it requires libgmalloc or asan for it to crash consistently.

rdar://19932927

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275600 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ARCMigrate/ObjCMT.cpp
test/ARCMT/objcmt-ns-enum-crash.m [new file with mode: 0644]
test/ARCMT/objcmt-ns-enum-crash.m.result [new file with mode: 0644]
test/ARCMT/objcmt-ns-macros.m.result