mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
16 lines
205 B
C
16 lines
205 B
C
// pointsto on aggregates
|
|
|
|
typedef struct
|
|
{
|
|
int *ptr;
|
|
} myStruct1;
|
|
|
|
int *myFunction1()
|
|
{
|
|
int x, y;
|
|
myStruct1 a = { .ptr = &x };
|
|
myStruct1 b = { .ptr = &y };
|
|
|
|
return a.ptr; // &x [FALSE POSITIVE: y]
|
|
}
|