Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 23026
0 votes

recover compiles but has segmentation fault when running it with ./recover card.raw, could a...

change while (fread(buffer, 512, 1, file) == 512) to size_t rd = 0; while ((rd=fread(buffer, 1, 512, file))) { // now you have read rd bytes }
stensal's user avatar
  • 450
2 votes
Accepted

(pset4) Fatal error: glibc detected an invalid stdio handle

At line 46, you write to the outside of filename declared at line 27. Here is the link that you can debug errors like this by yourself. Memory access error: writing to the outside of a memory spac …
stensal's user avatar
  • 450