mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update cpp/ql/test/query-tests/Security/CWE/CWE-079/semmle/CgiXss/search.c
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f5d5460dde
commit
25beadcb05
@@ -37,7 +37,7 @@ void good_server1(char* query) {
|
||||
puts(do_search(query));
|
||||
}
|
||||
|
||||
int scanf(const char *, ...);
|
||||
int sscanf(const char *s, const char *format, ...);
|
||||
|
||||
void good_server2(char* query) {
|
||||
puts("<p>Query results for ");
|
||||
@@ -59,4 +59,3 @@ int main(int argc, char** argv) {
|
||||
good_server2(raw_query);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user