commit | 2e336ac5ace420470bbb0ff54a94a5484443a44f | [log] [tgz] |
---|---|---|
author | Anna Zaks <ganna@apple.com> | Fri Jun 08 18:44:43 2012 +0000 |
committer | Anna Zaks <ganna@apple.com> | Fri Jun 08 18:44:43 2012 +0000 |
tree | 9d2c96652685dde14cad60133aef390a4a0112b7 | |
parent | 6fe6a49c4058211ff4489023c78615ec0266c5ff [diff] |
[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