Skip to content

Fix usage after free in AsyncEventSource #9

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

Closed
wants to merge 2 commits into from

Conversation

tomaszduda23
Copy link

Queue inside AsyncEventSourceClient is executed from 2 threads without locking which may lead to use after free. There is more issues in ESPAsyncWebServer and AsyncTCP-esphome. Having 2 threads seems to be good idea since it helps with making web interface more interactive but now it may crash esp32.

@tomaszduda23
Copy link
Author

tomaszduda23 commented Feb 24, 2023

Close since it is only one fix of many. esphome/issues#4076 solve the problem.

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