mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Update test.cpp
This commit is contained in:
@@ -39,7 +39,7 @@ int funcTest3()
|
||||
FILE *fp;
|
||||
char filename[80];
|
||||
strcat(filename, "/tmp/tmp.name");
|
||||
fp = fopen(filename,"w"); // BAD
|
||||
fp = fopen(filename,"w"); // BAD [NOT DETECTED]
|
||||
fprintf(fp,"%s\n","data to file");
|
||||
fclose(fp);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user