We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2959150 commit cd561ddCopy full SHA for cd561dd
cpp/ql/test/experimental/query-tests/Security/CWE/CWE-476/semmle/tests/test.cpp
@@ -73,9 +73,12 @@ void funcWork1b() {
73
74
void funcWork1() {
75
int a;
76
+ int i;
77
myGlobalData *valData = new myGlobalData;
78
valData->sizeInt = 10;
79
valData->bufMyData = new myData*[valData->sizeInt];
80
+ for (i = 0; i < valData->sizeInt; i++)
81
+ valData->bufMyData[i] = 0;
82
try {
83
cleanFunction();
84
throwFunction(a);
0 commit comments