
jon_harris71.552493083801867E12 asked a question.
Repair option doesn't always fix corrupted files
It looks like the Repair option doesn't always replace corrupted files, depending on what type of corruption is present.
To test this, I used a hex editor to "corrupt" a .exe file in various ways, then ran Repair. Here are some results:
[LIST=1]
- I changed a few bytes part way into the file. Repair did not fix it.
- I inserted a single byte at the beginning of the file. Repair fixed it.
- I inserted a single byte at the end of the file. Repair did not fix it.
- I changed the first byte of the file. Repair fixed it.
- I changed the second byte of the file. Repair fixed it.
These rules are designed to work uniformly in repair cases without causing problems when another package has updated a file that they both share. It would be bad if repairing package A reverted the later version of the file that package B installs and relies on.