mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
C++: Correct a few test comments.
This commit is contained in:
@@ -76,12 +76,12 @@ void test1()
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(snprintf(buffer, 256, "%i", source()));
|
||||
sink(buffer); // tainted
|
||||
sink(buffer); // tainted [NOT DETECTED]
|
||||
}
|
||||
{
|
||||
char buffer[256] = {0};
|
||||
sink(snprintf(buffer, 256, "%.*s", source(), "Hello."));
|
||||
sink(buffer); // tainted
|
||||
sink(buffer); // tainted [NOT DETECTED]
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user