| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Don't assert in CastSizeChecker when the casted-to pointee is an incomplete ↵ | Ted Kremenek | 2010-09-01 | 1 | -0/+4 |
| | | | | | | | type. Fixes PR 8050. llvm-svn: 112738 | ||||
| * | Add a new symbol type, SymbolExtent, to represent the extents of memory ↵ | Jordy Rose | 2010-07-04 | 1 | -9/+9 |
| | | | | | | | | | | | regions that may not be known at compile-time (such as those created by malloc). This replaces the old setExtent/getExtent API on Store, which used the GRState's GDM to store SVals. Also adds a getKnownValue() method to SValuator, which gets the integer value of an SVal if it is known to only have one possible value. There are more places in the code that could be using this, but in general we want to be dealing entirely in SVals, so its usefulness is limited. The only visible functionality change is that extents are now honored for any DeclRegion, such as fields and Objective-C ivars, rather than just variables. This shows up in bounds-checking and cast-size-checking. llvm-svn: 107577 | ||||
| * | Casting to void* or any other pointer-to-sizeless type (e.g. function ↵ | Jordy Rose | 2010-06-20 | 1 | -0/+5 |
| | | | | | | | pointers) causes a divide-by-zero error. Simple fix: check if the pointee type size is 0 and bail out early if it is. llvm-svn: 106401 | ||||
| * | CastSizeChecker checks when casting a malloc'ed symbolic region to type T, | Zhongxing Xu | 2010-05-25 | 1 | -0/+82 |
| whether the size of the symbolic region is a multiple of the size of T. Fixes PR6123 and PR7217. llvm-svn: 104584 | |||||

