-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement fallback for corrupted nvram.vmp
and similar files
#254
Comments
Inside
Let's look at how prone these are to cause a crash when they have become corrupted.
|
For various reasons, files VMPC2000XL tries to load may become corrupted. At the moment, for
nvram.vmp
, and maybe some other files too, we only check if the file exists, and then assume it is healthy. Fornvram.vmp
in particular, seeDefaultsParser::AllDefaultsFromFile
. But we should try to find other places that make the same assumption as well, and then everywhere implement detection of corruption, and a fallback mechanism. In most cases, adding a file-size check on top of the file-exists check should suffice, so let's start with that. Additionally we may delete or rename the corrupted file, to ensure there's no attempt of loading it again.Actual crash log submitted by Nino Beatz:
The text was updated successfully, but these errors were encountered: