mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
add TODO on possible memory out-of-bounds error
This commit is contained in:
@@ -843,6 +843,8 @@ void Thermostat::process_RC35wwTimer(std::shared_ptr<const Telegram> telegram) {
|
|||||||
if (telegram->type_id != 0x38) {
|
if (telegram->type_id != 0x38) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: should this be >= 87 to avoid out of bounds?
|
||||||
if (telegram->message_length + telegram->offset >= 92 && telegram->offset <= 87) {
|
if (telegram->message_length + telegram->offset >= 92 && telegram->offset <= 87) {
|
||||||
char data[sizeof(wwVacation_)];
|
char data[sizeof(wwVacation_)];
|
||||||
snprintf(data,
|
snprintf(data,
|
||||||
|
|||||||
Reference in New Issue
Block a user