Skip to content

Conversation

earlephilhower
Copy link
Collaborator

The LittleFS constructor could cause a divide-by-zero error and crash the
chip during pre-main startup (i.e. when the constructors were called).

Avoid by only initializing the LittleFS control structure when there is
a filesystem specified in the flash layout.

As identified by @drzony on https://gitter.im/esp8266/Arduino

The LittleFS constructor could cause a divide-by-zero error and crash the
chip during pre-main startup (i.e. when the constructors were called).

Avoid by only initializing the LittleFS control structure when there is
a filesystem specified in the flash layout.
@earlephilhower earlephilhower added this to the 3.0.1 milestone Jun 25, 2021
@d-a-v d-a-v merged commit d1c7c04 into esp8266:master Jun 25, 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.

2 participants