mirror of
https://github.com/esphome/esphome.git
synced 2026-10-21 21:36:14 +00:00
The receive buffer is sized by code generation to max_packet_size, but set_max_packet_size() can raise the limit afterwards, and the received bytes would then overflow the buffer. The link now takes the buffer as a span and stops at its size too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>