Skip to content

Conversation

@oxan
Copy link
Member

@oxan oxan commented Nov 10, 2021

This was an utterly idiotic API; if you accept pointers, you can't just assume ownership over them and unconditionally destroy them whenever you like too.

This broke the captive portal: when it stopped, it deinitialized the webserver, which deleted its handlers. As the captive portal object itself was one of the handlers, it and its member objects were now destroyed, and that caused its own continuing teardown to use-after-free or double-free (see esphome/esphome#2686).

@jesserockz jesserockz merged commit ac0ee8d into esphome:master Nov 11, 2021
@oxan oxan deleted the patch-2 branch November 11, 2021 20:05
@oxan oxan restored the patch-2 branch November 11, 2021 20:05
@oxan oxan deleted the patch-2 branch November 11, 2021 20:05
kuba2k2 pushed a commit to libretiny-eu/ESPAsyncWebServer that referenced this pull request May 27, 2025
kuba2k2 pushed a commit to libretiny-eu/ESPAsyncWebServer that referenced this pull request May 27, 2025
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