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) |