Guest User

Untitled

a guest
Jan 8th, 2016
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. btv->~» cat readmem.c && cc -o readmem readmem.c && ./readmem > readmem.out ; du -h readmem.out [12:41:21]
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <stdlib.h>
  5.  
  6. int main(void) {
  7. char *p;
  8. p = (char*)&memcpy;
  9.  
  10. while(1)
  11. putchar(*p++);
  12.  
  13. return 0;
  14. }
  15.  
  16. [1] 63287 segmentation fault ./readmem > readmem.out
  17. 334M readmem.out
Advertisement
Add Comment
Please, Sign In to add comment