History log of /external/clang/test/Analysis/malloc-sizeof.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9f6ec8253e3ec3e9722ca7e4599f977db2f786ef 08-Sep-2012 Anna Zaks <ganna@apple.com> [analyzer] Address John's code review for r163407.

Teach malloc sizeof checker to find type inconsistencies in multi-
dimensional arrays.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163438 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Analysis/malloc-sizeof.c
258bd59eee5403fc2a98fb23df71fa0281a3ec29 07-Sep-2012 Anna Zaks <ganna@apple.com> [analyzer] Fix a false positive in sizeof malloc checker.

Don't warn when the sizeof argument is an array with the same element
type as the pointee of the return type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163407 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Analysis/malloc-sizeof.c
2e336ac5ace420470bbb0ff54a94a5484443a44f 08-Jun-2012 Anna Zaks <ganna@apple.com> [analyzer] MallocSizeofChecker false positive: when sizeof is argument
to addition.

We should not to warn in case the malloc size argument is an
addition containing 'sizeof' operator - it is common to use the pattern
to pack values of different sizes into a buffer.

Ex:

uint8_t *buffer = (uint8_t*)malloc(dataSize + sizeof(length));

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158219 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Analysis/malloc-sizeof.c
ca11510d399ae0493bcb3daf24e3c1df399d75f2 08-May-2012 Anna Zaks <ganna@apple.com> [analyzer]Turn on MallocSizeOfChecker by default; shorten the diagnostic

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156341 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Analysis/malloc-sizeof.c
88db6a2daa8bb55fe924773805f42616c8a4f314 01-May-2012 Ted Kremenek <kremenek@apple.com> 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
/external/clang/test/Analysis/malloc-sizeof.c
dc30967a4633186782e0e204c65dba2552301ec9 08-Dec-2011 Peter Collingbourne <peter@pcc.me.uk> Add an experimental MallocSizeofChecker, which reports inconsistencies
between the casted type of the return value of a malloc/calloc/realloc
call and the operand of any sizeof expressions contained within
its argument(s).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146144 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Analysis/malloc-sizeof.c