mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Update test.c
This commit is contained in:
@@ -18,6 +18,7 @@ void workFunction_2_0(char *s) {
|
||||
strncat(buf, s, len-strlen(buf)-1); // GOOD
|
||||
strncat(buf, s, len-strlen(buf)); // BAD
|
||||
strncat(buf, "fix", len-strlen(buf)); // BAD [NOT DETECTED]
|
||||
}
|
||||
void workFunction_2_1(char *s) {
|
||||
char * buf;
|
||||
int len=80;
|
||||
|
||||
Reference in New Issue
Block a user