File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cpp/ql/test/query-tests/Security/CWE/CWE-367/semmle Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ void test3_1(const char *path)
226
226
227
227
fclose (f);
228
228
229
- chmod (path, 0 ); // BAD
229
+ chmod (path, 0 ); // BAD???
230
230
}
231
231
}
232
232
@@ -266,7 +266,7 @@ void test4_1(const char *path1, const char *path2)
266
266
{
267
267
if (!rename (path1, path2))
268
268
{
269
- remove (path1); // BAD
269
+ remove (path1); // BAD???
270
270
}
271
271
}
272
272
@@ -276,7 +276,7 @@ void test4_2(const char *path1, const char *path2)
276
276
{
277
277
// ...
278
278
} else {
279
- remove (path1); // BAD
279
+ remove (path1); // BAD???
280
280
}
281
281
}
282
282
@@ -296,7 +296,7 @@ void test4_4(const char *path1, const char *path2)
296
296
297
297
if (rename (path1, path2))
298
298
{
299
- f = fopen (path2, " r" ); // BAD [NOT DETECTED]
299
+ f = fopen (path2, " r" ); // BAD??? [NOT DETECTED]
300
300
}
301
301
}
302
302
You can’t perform that action at this time.
0 commit comments