Subset of C language with tree interpreter and bytecode compiler + VM.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 regels
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;
}