diff options
| author | Anna Zaks <ganna@apple.com> | 2012-06-08 18:44:43 +0000 |
|---|---|---|
| committer | Anna Zaks <ganna@apple.com> | 2012-06-08 18:44:43 +0000 |
| commit | 528b14c5d9bc5b55fedba858b67487dacd23820c (patch) | |
| tree | 1ab5e7c71055aa70eb5fa38432b2fa2276e17ac3 /lldb/source/Commands/CommandObjectThread.cpp | |
| parent | bf86b295bb12f27331ce524eeb06f95a66c86514 (diff) | |
| download | llvm-528b14c5d9bc5b55fedba858b67487dacd23820c.zip llvm-528b14c5d9bc5b55fedba858b67487dacd23820c.tar.gz llvm-528b14c5d9bc5b55fedba858b67487dacd23820c.tar.bz2 | |
[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));
llvm-svn: 158219
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions
