mirror of
https://github.com/esphome/esphome.git
synced 2026-03-01 02:14:19 -07:00
5a88bb6d8ab01bde741537a2b21e0a2372223081
search_query_sources was copying the URL query string into a 513-byte stack buffer, then query_key_value added another 513-byte buffer for the extracted value — 1026 bytes simultaneously on the httpd thread's limited stack, causing a crash in lwip_select. The query string already lives in req->uri after the '?'. Access it directly via pointer instead of copying, eliminating one buffer entirely.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
524 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
