mirror of
https://github.com/esphome/esphome.git
synced 2026-09-20 19:48:39 +00:00
2f128653889f7d3d6b811d8e59741c6fb56e3f31
When rx_buf_ is empty during the client hello phase of the noise handshake, rx_buf_.data() can return nullptr. Passing nullptr to std::memcpy as the source argument is undefined behavior even when the size is 0. Guard the memcpy with a size check. Found by UndefinedBehaviorSanitizer in #14718.
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
609 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
