add TODO on possible memory out-of-bounds error

This commit is contained in:
Proddy
2023-09-23 18:41:54 +02:00
parent 41228e894a
commit 917e268ac9

View File

@@ -843,6 +843,8 @@ void Thermostat::process_RC35wwTimer(std::shared_ptr<const Telegram> telegram) {
if (telegram->type_id != 0x38) {
return;
}
// TODO: should this be >= 87 to avoid out of bounds?
if (telegram->message_length + telegram->offset >= 92 && telegram->offset <= 87) {
char data[sizeof(wwVacation_)];
snprintf(data,