1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 10:52:19 +01:00

Fix check

This commit is contained in:
Jesse Hills
2025-08-27 16:19:29 +12:00
parent 1ec66e4e55
commit b11aa844a9

View File

@@ -182,7 +182,7 @@ void EPaperBase::initialize_() {
}
const auto *ptr = sequence + index;
const uint8_t length = ptr[1];
if (sequence_size - index < length) {
if (sequence_size - index < length + 2) {
this->mark_failed("Malformed init sequence");
return;
}