Skip to content
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

Handle corrupt preferences files #129

Merged
merged 1 commit into from
Jun 30, 2021
Merged

Handle corrupt preferences files #129

merged 1 commit into from
Jun 30, 2021

Conversation

easytarget
Copy link
Owner

SPIFFS has a nasty bug where reading the preferences file produced an infinite supply of data, locking the loadPrefs() function up during startup.
Fix this by adding a check on sizes and wether more data is returned than the declared size; if so scrub the preferences file since it is corrupt and proceed with defaults.

@easytarget easytarget linked an issue Jun 30, 2021 that may be closed by this pull request
@easytarget easytarget merged commit 55b091e into master Jun 30, 2021
@easytarget easytarget deleted the corrupt-spiffs branch June 30, 2021 16:22
easytarget added a commit that referenced this pull request Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Corrupt SPIFFS file can lock cam module up
1 participant