mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
16 lines
259 B
C
16 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;
|
|
}
|