mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
11 lines
215 B
C++
11 lines
215 B
C++
#define RECORD_SIZE 30 //incorrect or outdated size for record
|
|
typedef struct {
|
|
char name[30];
|
|
int status;
|
|
} Record;
|
|
|
|
void f() {
|
|
Record* p = malloc(RECORD_SIZE); //not of sufficient size to hold a Record
|
|
...
|
|
}
|