]> granicus.if.org Git - clang/commit
malloc size checker: Ignore const'ness of pointer types when determining of a sizeof...
authorTed Kremenek <kremenek@apple.com>
Tue, 1 May 2012 00:10:19 +0000 (00:10 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 1 May 2012 00:10:19 +0000 (00:10 +0000)
commit88db6a2daa8bb55fe924773805f42616c8a4f314
tree813ae48abe0468af18d75d37b659d2e6bd913178
parent4e1b292146936432dd6c76ba413f700eb1cd3432
malloc size checker: Ignore const'ness of pointer types when determining of a sizeof() type is compatible with a pointed type.

Fixes <rdar://problem/11292586>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155864 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
test/Analysis/malloc-sizeof.c