History log of /llvm-project/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp (Results 26 – 35 of 35)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# d65f1c8d 31-Aug-2012 Jordan Rose <jordan_rose@apple.com>

[analyzer] RetainCountChecker: don't assume all functions have names.

Fixes a hard-to-reach crash when calling a non-member overloaded operator
with arguments that may be callbacks.

Future-proofing

[analyzer] RetainCountChecker: don't assume all functions have names.

Fixes a hard-to-reach crash when calling a non-member overloaded operator
with arguments that may be callbacks.

Future-proofing: don't make the same assumption in MallocSizeofChecker.
Aside from possibly respecting attributes in the future, it might be
possible to call 'malloc' through a function pointer.

I audited all other uses of FunctionDecl::getIdentifier() in the analyzer;
they all now correctly test to see if the identifier is present before
using it.

llvm-svn: 163012

show more ...


# 528b14c5 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

[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

show more ...


Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3
# 590c7bc1 07-May-2012 Anna Zaks <ganna@apple.com>

[analyzer]Turn on MallocSizeOfChecker by default; shorten the diagnostic

llvm-svn: 156341


Revision tags: llvmorg-3.1.0-rc2
# ad8cd300 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>.

llvm-svn: 155864


Revision tags: llvmorg-3.1.0-rc1
# b45d198b 05-Apr-2012 Ted Kremenek <kremenek@apple.com>

Require that all static analyzer issues have a category. As part of this change,
consolidate some commonly used category strings into global references (more of this can be done, I just did a few).

Require that all static analyzer issues have a category. As part of this change,
consolidate some commonly used category strings into global references (more of this can be done, I just did a few).

Fixes <rdar://problem/11191537>.

llvm-svn: 154121

show more ...


# 5a10f08b 04-Apr-2012 Ted Kremenek <kremenek@apple.com>

Include the "issue context" (e.g. function or method) where a static analyzer issue occurred in the plist output.

Fixes <rdar://problem/11004527>

llvm-svn: 154030


# 2c1dd271 05-Feb-2012 Dylan Noblesmith <nobled@dreamwidth.org>

Basic: import SmallString<> into clang namespace

(I was going to fix the TODO about DenseMap too, but
that would break self-host right now. See PR11922.)

llvm-svn: 149799


# 4903802f 04-Feb-2012 Benjamin Kramer <benny.kra@googlemail.com>

Move a method from IdentifierTable.h out of line and remove the SmallString include.

Fix all the transitive include users.

llvm-svn: 149783


# 31108473 08-Dec-2011 Francois Pichet <pichet2000@gmail.com>

Unbreak MSVC build.

llvm-svn: 146146


# 266e3dda 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

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).

llvm-svn: 146144

show more ...


12