mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
17 lines
259 B
C
17 lines
259 B
C
|
#include <stdlib.h>
|
||
|
|
||
|
__static_yoink("__die");
|
||
|
__static_yoink("GetSymbolByAddr");
|
||
|
__static_yoink("malloc_inspect_all");
|
||
|
|
||
|
char *lol(int n) {
|
||
|
return malloc(n);
|
||
|
}
|
||
|
|
||
|
char *(*pLol)(int) = lol;
|
||
|
|
||
|
int main(int argc, char *argv[]) {
|
||
|
char *s = pLol(4);
|
||
|
s[4] = 1;
|
||
|
}
|