← Back to context

Comment by marcosdumay

9 years ago

How do you calculate those checksums without relying on the memory?

the chances of the memory erroring in such a way that the checksum still matches becomes quite small

You can't really, but you are now requiring the error to occur specifically in the memory containing your checksum, rather than anywhere in your data.

  • It deeper than that. What are you calculating the checksum of? Is it corrupted already?

    If you can't trust your RAM, you have no hard truth to rely on. It's only probabilistic programing or living with the errors.

    (Although, rereading the GP, he seems to be talking about corrupted binaries. Yes, you can catch corrupted binaries, but only after they corrupted some data.)

    • It's even worse than that: where's the code that's doing all the chucksumming and checking of checksums? Presumably it came from memory at some point...

      Maybe it was read fine from the binary the first time, but the second time...

      At some point you just have to hope.