From a553bc2f57afcfe4de7ceca66aea30001bcaed1a Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Tue, 21 Oct 2025 04:22:09 +0300 Subject: [PATCH] add extra check --- lib/subghz/protocols/honeywell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/subghz/protocols/honeywell.c b/lib/subghz/protocols/honeywell.c index 106ddeead..f1ed6e4b8 100644 --- a/lib/subghz/protocols/honeywell.c +++ b/lib/subghz/protocols/honeywell.c @@ -379,6 +379,9 @@ SubGhzProtocolStatus } if(instance->generic.data_count_bit != 64) { + if(instance->generic.data_count_bit < 62) { + return SubGhzProtocolStatusErrorValueBitCount; + } // Removing possible artifacts from higher bits and setting header to FF FE instance->generic.data = ((((((0xFF << 16) | ((instance->generic.data >> 40) & 0xFFFF)) << 16) |