summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/malloc-sizeof.c
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Address John's code review for r163407.Anna Zaks2012-09-081-1/+3
| | | | | | | Teach malloc sizeof checker to find type inconsistencies in multi- dimensional arrays. llvm-svn: 163438
* [analyzer] Fix a false positive in sizeof malloc checker.Anna Zaks2012-09-071-0/+14
| | | | | | | Don't warn when the sizeof argument is an array with the same element type as the pointee of the return type. llvm-svn: 163407
* [analyzer] MallocSizeofChecker false positive: when sizeof is argumentAnna Zaks2012-06-081-2/+3
| | | | | | | | | | | | | | 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)); llvm-svn: 158219
* [analyzer]Turn on MallocSizeOfChecker by default; shorten the diagnosticAnna Zaks2012-05-071-9/+9
| | | | llvm-svn: 156341
* malloc size checker: Ignore const'ness of pointer types when determining of ↵Ted Kremenek2012-05-011-0/+8
| | | | | | | | a sizeof() type is compatible with a pointed type. Fixes <rdar://problem/11292586>. llvm-svn: 155864
* Add an experimental MallocSizeofChecker, which reports inconsistenciesPeter Collingbourne2011-12-081-0/+27
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). llvm-svn: 146144
OpenPOWER on IntegriCloud