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

Make LinkedList iterator safe against removal of cur item #952

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

depau
Copy link

@depau depau commented Mar 7, 2021

This PR implements my suggested solution for #951.

Closes #951.

@sieren
Copy link

sieren commented May 24, 2021

This is great! Can we get this merged already or is this repo no longer maintained?
Seems like the issue described here happens a lot more often when compiling with current masters of ardiuno-esp32 and ESP-IDF 4.4 (Crashes on access, no matter what - verified fixed with this PR).

@depau
Copy link
Author

depau commented May 31, 2021

FWIW I'm keeping a branch with all the bugfixes I need for my project here: https://github.com/Depau/ESPAsyncWebServer/tree/wi-se-patches

Feel free to use it until the fixes are merged.

@depau depau force-pushed the mem-corruption branch 2 times, most recently from 400ce4f to e9d32ba Compare August 1, 2021 09:27
@fcapano
Copy link

fcapano commented Aug 21, 2021

This issue has had me debugging memory corruption on an ESP32 until I came across this bug report.
The fix is working nicely for me. Too bad after more than 4 months it still hasn't been merged

jmysu added a commit to jmysu/ESP32C3_Pico that referenced this pull request Jul 21, 2022
there is a fix on ESP32C3 websocket StringArray crash:
me-no-dev/ESPAsyncWebServer#952
@teknoel
Copy link

teknoel commented Aug 23, 2022

is this fix related to this issue? #1201

@depau
Copy link
Author

depau commented Aug 24, 2022

is this fix related to this issue? #1201

Try the patches and see if it fixes your issues, I can't telepathically connect to your ESP32 to see it fixes the problem. https://github.com/Depau/ESPAsyncWebServer/tree/wi-se-patches

@depau
Copy link
Author

depau commented Aug 24, 2022

@teknoel since you mention websockets it might also be this other bug #953

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.

Use-after-free in AsyncWebServerRequest::_removeNotInterestingHeaders
4 participants