Timeline for recover images from raw file (pset4)
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 9, 2017 at 16:10 | comment | added | DinoCoderSaurus | It does return the point to the beginning of the signature but not necessarily to the beginning of a 512-byte block. If that signature is not found in the first byte of a block, as in the example (and presumably the test file!) the pointer gets all catawampus. | |
Jan 9, 2017 at 16:04 | comment | added | Cstudent | Thanks again for elaborating, but I thought that fseek(intpr, sizeof(unsigned char) * -4, SEEK_CUR); deals with that problem. It should return file's pointer backwards to the beginning of the signature. | |
Jan 9, 2017 at 15:25 | comment | added | DinoCoderSaurus | Hopefully the edited answer clarifies. | |
Jan 9, 2017 at 15:24 | history | edited | DinoCoderSaurus | CC BY-SA 3.0 |
added 605 characters in body
|
Jan 9, 2017 at 15:08 | comment | added | Cstudent | After the first signature is found, it's used after each 512-bytes to check the first 4 bytes of the next block. | |
Jan 9, 2017 at 14:40 | comment | added | DinoCoderSaurus | What about the checkSig function? | |
Jan 9, 2017 at 14:33 | comment | added | Cstudent | Thank you for replying. I used fread with the size 512, isn't that 512-byte block? | |
Jan 9, 2017 at 14:25 | history | answered | DinoCoderSaurus | CC BY-SA 3.0 |