- May 06, 2011
-
-
Alexis Hunt authored
- New isDefined() function checks for deletedness - isThisDeclarationADefinition checks for deletedness - New doesThisDeclarationHaveABody() does what isThisDeclarationADefinition() used to do - The IsDeleted bit is not propagated across redeclarations - isDeleted() now checks the canoncial declaration - New isDeletedAsWritten() does what it says on the tin. - isUserProvided() now correct (thanks Richard!) This fixes the bug that we weren't catching void foo() = delete; void foo() {} as being a redefinition. llvm-svn: 131013
-
- May 03, 2011
-
-
Lenny Maiorani authored
Removing strncpy() checking in CString checker for now. Some significant changes need to be made to properly support modeling of it since it potentially leaves strings non-null terminated. llvm-svn: 130758
-
- May 02, 2011
-
-
Ted Kremenek authored
Augment retain/release checker to not warn about tracked objects passed as arguments to C++ constructors. This is a stop-gap measure for Objective-C++ code that uses smart pointers to manage reference counts. llvm-svn: 130711
-
Lenny Maiorani authored
Implements strncasecmp() checker and simplifies some of the logic around creating substrings if necessary and calling the appropriate StringRef::compare/compare_lower(). llvm-svn: 130708
-
- Apr 30, 2011
-
-
Ted Kremenek authored
llvm-svn: 130598
-
- Apr 28, 2011
-
-
Lenny Maiorani authored
Use StringRef::substr() and unbounded StringRef::compare() instead of bounded version of StringRef::compare() because bounded version of StringRef::compare() is going to be removed. llvm-svn: 130425
-
Lenny Maiorani authored
Eliminates an assert in the strncpy/strncat checker caused by not validating a cast was successful. If the value of an argument was unknown, the cast would result in a NULL pointer which was later being dereferenced. This fixes Bugzilla #9806. llvm-svn: 130422
-
Lenny Maiorani authored
llvm-svn: 130398
-
- Apr 27, 2011
-
-
Lenny Maiorani authored
More accurately model realloc() when the size argument is 0. realloc() with a size of 0 is equivalent to free(). The memory region should be marked as free and not used again. Unit tests f2_realloc_0(), f6_realloc(), and f7_realloc() contributed by Marshall Clow <mclow.lists@gmail.com>. Thanks! llvm-svn: 130303
-
Ted Kremenek authored
Allow 'Environment::getSVal()' to allow an optional way for checkers to do a direct lookup to values bound to expressions, without resulting to lazy logic. This is critical for the OSAtomicChecker that does a simulated load on any arbitrary expression. llvm-svn: 130292
-
- Apr 26, 2011
-
-
Lenny Maiorani authored
Implements the strncmp() checker just like the strcmp() checker, but with bounds. Requires LLVM svn r129582. llvm-svn: 130161
-
- Apr 23, 2011
-
-
Jay Foad authored
llvm-svn: 130068
-
- Apr 19, 2011
-
-
Anders Carlsson authored
llvm-svn: 129741
-
- Apr 15, 2011
-
-
Richard Smith authored
llvm-svn: 129567
-
Chris Lattner authored
Luis Felipe Strano Moraes! llvm-svn: 129559
-
- Apr 12, 2011
-
-
Ted Kremenek authored
llvm-svn: 129395
-
Ted Kremenek authored
Fix another IdempotentOperationsChecker corner case when determining if an active block on the worklist impacts the results of the check. llvm-svn: 129394
-
Ted Kremenek authored
ArrayBoundCheckerV2: don't arbitrarily warn about indexing before the 0-index of a symbolic region. In many cases that isn't really the base offset. llvm-svn: 129366
-
Lenny Maiorani authored
This patch adds modeling of strcmp() to the CString checker. Validates inputs are not NULL and are real C strings, then does the comparison and binds the proper return value. Unit tests included. llvm-svn: 129364
-
- Apr 09, 2011
-
-
Lenny Maiorani authored
Validates inputs are not NULL, checks for overlapping strings, concatenates the strings checking for buffer overflow, sets the length of the destination string to the sum of the s1 length and the s2 length, binds the return value to the s1 value. llvm-svn: 129215
-
- Apr 05, 2011
-
-
Lenny Maiorani authored
Add security syntax checker for strcat() which causes the Static Analyzer to generate a warning any time the strcat() function is used with a note suggesting to use a function which provides bounded buffers. CWE-119. Also, brings the security syntax checker more inline with coding standards. llvm-svn: 128916
-
- Apr 03, 2011
-
-
Lenny Maiorani authored
Refactoring the security checker a little bit so that each CallExpr check doesn't get called for each CallExpr. Instead it does a switch and only runs the check for the proper identifier. Slight speed improvement (probably significant on very large ASTs), and should make it easier and more clear to add more checks for other CallExpr's later. llvm-svn: 128785
-
- Apr 02, 2011
-
-
Zhongxing Xu authored
llvm-svn: 128762
-
Ted Kremenek authored
Teach IdempotentOperationsChecker about paths aborted because ExprEngine didn't know how to handle a specific Expr type. llvm-svn: 128761
-
Ted Kremenek authored
static analyzer: Rename 'BlocksAborted' to 'BlocksExhausted' to reflect that a given CFGBlock was analyzed too many times. llvm-svn: 128760
-
- Apr 01, 2011
-
-
Lenny Maiorani authored
Add security syntax checker for strcpy() which causes the Static Analyzer to generate a warning any time the strcpy() function is used with a note suggesting to use a function which provides bounded buffers. llvm-svn: 128679
-
- Mar 31, 2011
-
-
Lenny Maiorani authored
Models mempcpy() so that if length is NULL the destination pointer is returned. Otherwise, the source and destination are confirmed not to be NULL and not overlapping. Finally the copy is validated to not cause a buffer overrun and the return value is bound to the address of the byte after the last byte copied. llvm-svn: 128677
-
Lenny Maiorani authored
llvm-svn: 128670
-
- Mar 30, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 128512
-
Argyrios Kyrtzidis authored
[analyzer] For -analyzer-checker-help show all the info about groups, packages, and which packages/checkers are hidden. llvm-svn: 128511
-
- Mar 29, 2011
-
-
Argyrios Kyrtzidis authored
llvm-svn: 128475
-
- Mar 26, 2011
-
-
Ted Kremenek authored
llvm-svn: 128310
-
- Mar 24, 2011
-
-
Ted Kremenek authored
llvm-svn: 128187
-
- Mar 19, 2011
-
-
Ted Kremenek authored
This rename serves two purposes: - It reflects the actual functionality of this analysis. - We will have more than one reachability analysis. llvm-svn: 127930
-
- Mar 17, 2011
-
-
Ted Kremenek authored
llvm-svn: 127798
-
Ted Kremenek authored
Teach VariadicMethodTypeChecker that CF references are valid arguments to variadic Objective-C methods. llvm-svn: 127797
-
- Mar 16, 2011
-
-
Ted Kremenek authored
VariadicMethodTypeChecker: don't warn for null pointer constants passed to variadic Objective-C methods. llvm-svn: 127719
-
- Mar 15, 2011
-
-
Ted Kremenek authored
llvm-svn: 127687
-
- Mar 14, 2011
-
-
Ted Kremenek authored
Tweak VariadicMethodTypeChecker to only create one ExplodedNode when issuing multiple warnings for the same message expression. Also add a test case showing that we correctly report multiple warnings for the same message expression. llvm-svn: 127605
-
- Mar 13, 2011
-
-
Anders Carlsson authored
Add an Objective-C checker that checks that arguments passed to some variadic Objective-C methods are of Objective-C pointer types. Ted or Argiris, I'd appreciate a review! llvm-svn: 127572
-