Advertisement
rupek1995

Untitled

Mar 7th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.28 KB | None | 0 0
  1. (gdb) run card.raw
  2. Starting program: /home/jrupinski/CS50/pset4/recover/recover card.raw
  3.  
  4. Missing separate debuginfos, use: dnf debuginfo-install glibc-2.24-4.fc25.x86_64
  5. JPEG Header found!
  6. JPEG Header found!
  7. new file created : 000.jpg
  8.  
  9. Breakpoint 1, main (argc=2argv=0x7fffffffdf68) at recover.c:60
  10. 60          while (fread(outptr, 1512, inptr) == 512)
  11. (gdb) n
  12. 63              fseek(inptr, -512, SEEK_CUR);
  13. (gdb) n
  14. 66              for(int i = 0, arr_size = sizeof(byte_array); i < arr_size; i++)
  15. (gdb) n
  16. 68                  fread(&byte_array[i]11, inptr);
  17. (gdb) print /x byte_array[0]
  18. $1 = 0x0
  19. (gdb) n
  20. 69                  fwrite(&byte_array[i]11, outptr);
  21. (gdb) print /x byte_array[0]
  22. $2 = 0xff
  23. (gdb) n
  24. Fatal error: glibc detected an invalid stdio handle
  25. Fatal error: glibc detected an invalid stdio handle
  26.  
  27. Program received signal SIGABRT, Aborted.
  28. 0x00007ffff773d91f in raise () from /lib64/libc.so.6
  29. (gdb) n
  30. Single stepping until exit from function raise,
  31. which has no line number information.
  32.  
  33. Program terminated with signal SIGABRT, Aborted.
  34. The program no longer exists.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement