mirror of
https://github.com/github/codeql.git
synced 2025-12-24 20:56:33 +01:00
12 lines
191 B
C++
12 lines
191 B
C++
typedef struct {
|
|
char name[100];
|
|
int status;
|
|
} person;
|
|
|
|
void f() {
|
|
person* buf = NULL;
|
|
buf = malloc(sizeof(person));
|
|
|
|
(*buf).status = 0; //access to buf before it was checked for NULL
|
|
}
|