| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Also document addTransition methods.
llvm-svn: 143059
|
|
|
|
|
|
|
|
|
| |
Remove dead members/parameters: ProgramState, respondsToCallback, autoTransition.
Remove addTransition method since it's the same as generateNode. Maybe we should
rename generateNode to genTransition (since a transition is always automatically
generated)?
llvm-svn: 142946
|
|
|
|
|
|
|
|
| |
Get rid of the EndOfPathBuilder completely.
Use the generic NodeBuilder to generate nodes.
Enqueue the end of path frontier explicitly.
llvm-svn: 142943
|
|
|
|
|
|
|
|
|
| |
of SourceLocations (commit 2 of ?):
- Modify all PathDiagnosticLocation constructors that take Stmt to also requre LocationContext.
- Add a constructor which should be used in case there is no valid statement/location (it will grab the location of the enclosing function).
llvm-svn: 139763
|
|
|
|
|
|
| |
existing API. Thanks Jordy.
llvm-svn: 138765
|
|
|
|
|
|
| |
on the previous commit.)
llvm-svn: 138762
|
|
|
|
|
|
|
|
| |
when analyzing ICU.
Patch by Jean-Daniel Dupas. Thanks for spotting and fixing!
llvm-svn: 138757
|
|
|
|
| |
llvm-svn: 138535
|
|
|
|
|
|
| |
highlights the allocation site) to all the relevant reports within the checker.
llvm-svn: 138531
|
|
|
|
| |
llvm-svn: 138497
|
|
|
|
| |
llvm-svn: 138493
|
|
|
|
|
|
| |
pointing to the allocation site when reporting a leak.
llvm-svn: 138479
|
|
|
|
|
|
| |
MIGHT deallocate the memory region allocated with SecKeychain APIs. Specifically, when the buffer is passed to CFStringCreateWithBytesNoCopy along with a custom deallocator, which might potentially correctly release the memory.
llvm-svn: 138417
|
|
|
|
|
|
| |
tracking even when it's no longer a SymbolicRegion, for example, when it is cast to char*.
llvm-svn: 138415
|
|
|
|
|
|
| |
for future reuse.
llvm-svn: 138414
|
|
|
|
|
|
| |
to deallocate the password. Catch this error explicitly and generate the error message at the place where free() is called.
llvm-svn: 138296
|
|
|
|
|
|
| |
functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME.
llvm-svn: 137894
|
|
|
|
|
|
| |
returned an error.
llvm-svn: 137720
|
|
|
|
|
|
| |
generate regular nodes instead of sink nodes.
llvm-svn: 137681
|
|
|
|
| |
llvm-svn: 137665
|
|
|
|
|
|
| |
per code review for r137523).
llvm-svn: 137633
|
|
|
|
|
|
| |
enclosing function parameter, skip it to avoid false positives.
llvm-svn: 137526
|
|
|
|
|
|
|
|
| |
Report errors earlier: on checkDeadSymbols() and clear the state after the symbol we are tracking goes out of scope.
Also, perform lazy error checking. Instead of forcing the paths to be split depending one the return value of the allocator, make the return symbol depend on the allocated data symbol, which prolongs its life span to the time when the allocated data symbol becomes dead.
llvm-svn: 137523
|
|
|
|
|
|
|
|
| |
the allocated data symbol, we can just use the symbol corresponding to the SymbolicRegion. This simplifies tracking of the symbol, for example, SymbolMetadata needs to go through extra hoops to stay alive.
Make AllocationState internal to the MacOSKeychainAPIChecker class.
llvm-svn: 137514
|
|
|
|
|
|
| |
state so that we could clear the state on evalDeadSymbols; also track the return value.
llvm-svn: 137003
|
|
|
|
|
|
| |
getAsPointeeMemoryRegion so that it could be reused.
llvm-svn: 136952
|
|
|
|
|
|
| |
exploring the transition on which a call to allocator function failed (to be able to find errors in examples like ErrorCodesFromDifferentAPISDoNotInterfere).
llvm-svn: 136930
|
|
|
|
|
|
| |
allocator/deallocator API pairs. Add the allocator function ID to the checker state. Better comments.
llvm-svn: 136889
|
|
|
|
| |
llvm-svn: 136852
|
|
|
|
|
|
| |
SymbolicRef since the address might not be a symbolic value in some cases, for example in fooOnlyFree() test.
llvm-svn: 136851
|
|
|
|
|
|
| |
returned noErr. (+ minor cleanup)
llvm-svn: 136694
|
|
experimental for now. Note, the checker still does not handle tracking of escaped values, taking into account the return value of the allocator functions, nor the actual bug reporting..
llvm-svn: 136659
|