Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- btv->~» cat readmem.c && cc -o readmem readmem.c && ./readmem > readmem.out ; du -h readmem.out [12:41:21]
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- int main(void) {
- char *p;
- p = (char*)&memcpy;
- while(1)
- putchar(*p++);
- return 0;
- }
- [1] 63287 segmentation fault ./readmem > readmem.out
- 334M readmem.out
Advertisement
Add Comment
Please, Sign In to add comment