In order to protect my program from being altered by hackers, I want to check the checksum of one of the code segments. If the checksum is different from expected, then the program knows someone tampered with it and the program aborts. For this to work, the binary code in the segment must be exactly the same no matter which OS version it runs on. From my experiements, it does seem to work (on Emulators and Simulators.) But what I don't understand is: Supposedly, theoretically, it shouldn't work! I mean when the program is loaded (or installed?), the OS would fix up addresses in code segments, and supposedly different OS versions will generate different addresses. That is, the binary code would be different on different OS and the checksum should fail! Am I right?
Could anyone tell me: 1. Will different OS versions generate different fix-ups? 2. I'd be more than happy to know that the answer to the above is a No. That way, my checksum strategy would work. But is it guaranteed that the code will always be the same no matter what version? Thank you! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
