]> granicus.if.org Git - clang/commit
c: When checking on validity of sizeof passed as size of
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 30 Jan 2013 01:12:44 +0000 (01:12 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 30 Jan 2013 01:12:44 +0000 (01:12 +0000)
commit7adf4179f827b14b025135829dadeaa2442e1d42
tree6d716add47b9e6d704298f0e331d05b91c635c34
parent9cd90a23f75d213a37740555626f18d3bb9e540b
c: When checking on validity of sizeof passed as size of
argument to be memset, check for its type to be complete
before calling Context.getTypeSize(PointeeTy) to prevent
crash. // rdar://13081751.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173872 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/memset-invalid-1.c [new file with mode: 0644]