Ted Kremenek
00fa5968cb
Teach ObjCContainersChecker that the array passed to CFArrayGetValueAtIndex might not be a symbolic value.
...
llvm-svn: 154083
2012-04-05 05:18:05 +00:00
Anna Zaks
88598248f9
[analyzer] Make sure Containers OutOfBounds checker does not crash on undefined arguments, when CF functions are called with wrong number of arguments.
...
llvm-svn: 149771
2012-02-04 06:40:52 +00:00
Anna Zaks
8e009df96e
[analyzer] Turn on by default two checkers:
...
- osx.coreFoundation.containers.IndexOutOfBounds
- osx.cocoa.SelfInit
llvm-svn: 149747
2012-02-04 02:31:57 +00:00
Anna Zaks
699f55b98c
[analyzer] Fix a false positive in the CFArrayCreate check that surfaces
...
the the code like this (due to x and &x being the same value but
different size):
void* x[] = { ptr1, ptr2, ptr3 };
CFArrayCreate(NULL, (const void **) &x, count, NULL);
llvm-svn: 149579
2012-02-02 01:30:08 +00:00
Anna Zaks
58cc6cabe5
[analyzer] Rename the checker as per Ted's comment. Remove the reference
...
from the driver.
llvm-svn: 149276
2012-01-30 21:14:16 +00:00
Anna Zaks
6523e46941
[analyzer] Make osx.cocos.CFContainersSyntax a default checker.
...
llvm-svn: 149258
2012-01-30 19:12:37 +00:00
Anna Zaks
4f870e652a
[analyzer] Add index out of bounds check for CFArrayGetArrayAtIndex.
...
llvm-svn: 149228
2012-01-30 06:42:48 +00:00
Anna Zaks
60835eb11e
[analyzer] The CFContainer test should only be run on x86_64.
...
llvm-svn: 149042
2012-01-26 04:00:23 +00:00
Anna Zaks
06f10bf05a
[analyzer] Add an AST checker that checks for a common pitfall when
...
using CFArrayCreate & family.
Specifically, CFArrayCreate's input should be:
'A C array of the pointer-sized values to be in the new array.'
(radar://10717339)
llvm-svn: 149008
2012-01-26 01:05:43 +00:00