Subset of C language with tree interpreter and bytecode compiler + VM.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

15 行
256 B

// use-after-free
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
int main() {
int *ptr = malloc(sizeof(*ptr));
assert(ptr);
*ptr = 42;
free(ptr);
printf("%d\n", *ptr); // use after free
*ptr = 43; // use after free
return 0;
}