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

fix comparison when handling deflated data (ESPTOOL-287) #650

Closed
wants to merge 1 commit into from

Conversation

alvarolb
Copy link
Contributor

@alvarolb alvarolb commented Aug 9, 2021

handle_flash_data should not be called if status < TINFL_STATUS_DONE, which meas decompress failed

handle_flash_data should not be called if status < TINFL_STATUS_DONE, which meas decompress failed
@github-actions github-actions bot changed the title fix comparison when handling deflated data fix comparison when handling deflated data (ESPTOOL-287) Aug 9, 2021
@radimkarnis
Copy link
Collaborator

Hi @alvarolb,

Thanks for your contribution, LTGM. No one has noticed this error for over 5 years!

I've cherry-picked your commit into our internal review & merge queue, this PR will be updated when it merges.

Radim

@alvarolb
Copy link
Contributor Author

alvarolb commented Aug 9, 2021

I suppose no one noticed the error as it is a little bug that in the wort case will do one unnecessary write on the flash... but nothing else ;)

dobairoland pushed a commit to espressif/esptool-legacy-flasher-stub that referenced this pull request May 30, 2024
handle_flash_data should not be called if status < TINFL_STATUS_DONE, which means decompress failed

Closes espressif/esptool#650
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.