summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-07-20Update test 38.Andrei Karas8-873/+1300
2015-07-20Fix detection for normal variables as pointers.Andrei Karas1-2/+5
2015-07-20Update test 36.Andrei Karas5-398/+2769
2015-07-20Fix handling "var = new Type" if Type have virtual destructor.Andrei Karas1-14/+45
2015-07-20Improve call function handling.Andrei Karas2-22/+34
2015-07-20Update test 36.Andrei Karas4-0/+488
2015-07-20Update test 37. Update test results.Andrei Karas11-439/+5224
2015-07-20Detect what variable is null after if with both branches set variable to ↵Andrei Karas1-0/+8
null value.
2015-07-20Allow detect if variable was assigned nullptr.Andrei Karas1-0/+5
2015-07-20Update test 37.Andrei Karas4-0/+3297
2015-07-20Detect what variable is non null after if with both branches set variable to ↵Andrei Karas1-1/+13
non null value.
2015-07-20Update test 37.Andrei Karas4-0/+1660
2015-07-20Add ability for detect what variable will be non null after if block (in ↵Andrei Karas3-5/+21
else branch)
2015-07-20Add test 38. Update test results.Andrei Karas15-1549/+14767
2015-07-20If in if/while body changed any variable, outside of body it removed from ↵Andrei Karas3-0/+16
known null vars.
2015-07-19Handle situation like this: "type var = nullptr". Here var will be known as ↵Andrei Karas3-0/+16
nulled variable.
2015-07-19Update test 37.Andrei Karas4-0/+1372
2015-07-19Fix ability for detect what variable will be non null after while block.Andrei Karas1-1/+3
2015-07-19Add test 37.Andrei Karas7-1/+7584
2015-07-19Add ability for detect what variable will be non null after if block.Andrei Karas3-0/+41
Example: if (!ptr) { ptr1 = new data; } // here ptr1 always non null
2015-07-18Fix detecting sub nodes in MODIFY_EXPR.Andrei Karas1-3/+6
Was missing skipNop call.
2015-07-13Add test 36.Andrei Karas7-1/+1730
2015-07-13Add ability to detect return from operator new as non null pointer.Andrei Karas1-1/+3
It allow this example: int ptr = new int[10]; // paranucker work with ptr here as with non null pointer
2015-07-10Add test 35. Update test results.Andrei Karas17-1422/+5435
2015-07-10Fix false positive like this: ptr = ptr->val;Andrei Karas1-4/+9
2015-07-10Update test 34.Andrei Karas4-0/+4160
2015-07-10Add analysis for CONTINUE_STMT node.Andrei Karas5-4/+29
2015-07-10Update test 34.Andrei Karas4-0/+1769
2015-07-10Unlink assigned variable in if/while body.Andrei Karas2-10/+19
2015-07-10Update test 34.Andrei Karas7-44/+1260
2015-07-10Fix false positives in second check in while condition.Andrei Karas1-0/+2
2015-07-10Update test 34.Andrei Karas6-737/+1922
2015-07-10Disable check for useless checks in second check in while condition.Andrei Karas4-7/+22
This fix false positive in this example: while(ptr) { ... }
2015-07-10Update test 34. Update test results.Andrei Karas8-0/+1365
2015-07-10In WHILE_STMT also check condition after while body.Andrei Karas1-0/+5
This allow detect issue like this: if (!ptr) return; while (ptr->num) { ... ptr = someothervalue; }
2015-07-10Add test 34. Update test 31. Update test results.Andrei Karas14-1503/+8009
2015-07-10Add ability to check variables assigned in if/while and check outside of ↵Andrei Karas3-22/+20
this block.
2015-07-08Add test 33.Andrei Karas7-1/+2100
2015-07-08Update test 32. Update test results.Andrei Karas26-3745/+8697
2015-07-08Add WHILE_STMT node analysis.Andrei Karas5-1/+119
This add basic support for while(exprt) {code}
2015-07-06Allow parse function type attributes in FUNCTION_TYPE always.Andrei Karas2-2/+2
2015-07-06Update test 32. Update test retulst.Andrei Karas18-3418/+6745
2015-07-06Track variable for checking null pointer assigned from function call only if ↵Andrei Karas11-8/+52
function return pointer. Update METHOD_TYPE for always parse function return type.
2015-07-06Add test 32. Update test results.Andrei Karas14-3378/+6181
2015-07-06Add way to track variables if to it was assigned function result.Andrei Karas6-11/+129
2015-07-05Update test 30.Andrei Karas6-0/+393
2015-07-05Update test results.Andrei Karas3-0/+12
2015-07-05Add non null function arguments to knownVars and knownNonNullVars collections.Andrei Karas1-1/+5
2015-07-05Update test 29.Andrei Karas6-1384/+1896
2015-07-05Remove old commented code from statement analysis.Andrei Karas1-20/+0