Skip to content

Commit dc2cb9b

Browse files
committed
C++: Fix numbering.
1 parent bc3b347 commit dc2cb9b

File tree

1 file changed

+8
-8
lines changed
  • cpp/ql/test/query-tests/Security/CWE/CWE-367/semmle

1 file changed

+8
-8
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-367/semmle/test2.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void test3_2(const char *path, int arg)
231231

232232
// --- open -> chmod ---
233233

234-
void test3_1(const char *path)
234+
void test4_1(const char *path)
235235
{
236236
FILE *f = NULL;
237237

@@ -248,15 +248,15 @@ void test3_1(const char *path)
248248

249249
// --- rename -> remove / open ---
250250

251-
void test4_1(const char *path1, const char *path2)
251+
void test5_1(const char *path1, const char *path2)
252252
{
253253
if (!rename(path1, path2))
254254
{
255255
remove(path1); // BAD???
256256
}
257257
}
258258

259-
void test4_4(const char *path1, const char *path2)
259+
void test5_2(const char *path1, const char *path2)
260260
{
261261
FILE *f = NULL;
262262

@@ -268,7 +268,7 @@ void test4_4(const char *path1, const char *path2)
268268

269269
// --- access -> open ---
270270

271-
void test5_1(const char *path)
271+
void test6_1(const char *path)
272272
{
273273
FILE *f = NULL;
274274

@@ -280,7 +280,7 @@ void test5_1(const char *path)
280280
}
281281
}
282282

283-
void test5_2(const char *path)
283+
void test6_2(const char *path)
284284
{
285285
FILE *f = NULL;
286286

@@ -294,7 +294,7 @@ void test5_2(const char *path)
294294
// ...
295295
}
296296

297-
void test5_3(const char *path)
297+
void test6_3(const char *path)
298298
{
299299
FILE *f = NULL;
300300

@@ -306,7 +306,7 @@ void test5_3(const char *path)
306306
}
307307
}
308308

309-
void test5_4(const char *path)
309+
void test6_4(const char *path)
310310
{
311311
FILE *f = NULL;
312312

@@ -320,7 +320,7 @@ void test5_4(const char *path)
320320
}
321321
}
322322

323-
void test5_5(const char *path1, const char *path2)
323+
void test6_5(const char *path1, const char *path2)
324324
{
325325
FILE *f = NULL;
326326

0 commit comments

Comments
 (0)