mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
[CPP-370] First attempt at isAdditionalFlowStep().
This commit is contained in:
@@ -94,14 +94,14 @@ int main(int argc, char **argv) {
|
||||
const char *hello = "Hello, World\n";
|
||||
const char **p = &hello;
|
||||
(*p)++;
|
||||
printf(hello); // NOT OK
|
||||
printf(hello); // NOT OK [NOT DETECTED]
|
||||
}
|
||||
{
|
||||
// Same as above block but through a C++ reference
|
||||
const char *hello = "Hello, World\n";
|
||||
const char *&p = hello;
|
||||
p++;
|
||||
printf(hello); // NOT OK
|
||||
printf(hello); // NOT OK [NOT DETECTED]
|
||||
}
|
||||
if (gettext_debug) {
|
||||
printf(new char[100]); // NOT OK
|
||||
@@ -132,4 +132,4 @@ void another_func(void) {
|
||||
printf(message); // OK
|
||||
printf("Hello, World\n"); // OK
|
||||
printf(gettext("Hello, World\n")); // OK
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user