mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
remove cases involving sizeof
This commit is contained in:
@@ -12,6 +12,7 @@ int vfprintf (FILE *, const char *, va_list);
|
||||
|
||||
int a = 1;
|
||||
int b;
|
||||
int *c;
|
||||
|
||||
int my_printf(const char * fmt, ...)
|
||||
{
|
||||
@@ -37,8 +38,9 @@ void f2() {
|
||||
|
||||
int main()
|
||||
{
|
||||
unsigned size = sizeof(*c); // GOOD
|
||||
my_printf("%d\n", b); // BAD
|
||||
b = f1();
|
||||
f2();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user