Files
UtilitechAS.amsreader-firmware/lib
Mads Fox 6011d3169e Fix uninitialized loop variable in GcmParser causing undefined behavior (#1163)
In GcmParser::parse(), the authentication check loop used an uninitialized
loop counter: `for(uint8_t i; i < 16; i++)`. This is undefined behavior in
C++ because `i` has an indeterminate value, potentially causing the
authentication check to be skipped entirely or to read out-of-bounds memory.

Fix: initialize `i` to 0 so the loop correctly iterates all 16 bytes of
the authentication key.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 09:51:27 +02:00
..
2026-04-09 09:40:09 +02:00
2026-04-09 09:40:09 +02:00
2026-04-09 09:40:09 +02:00
2026-04-09 09:40:09 +02:00
2026-04-09 09:40:09 +02:00
2026-04-09 09:40:09 +02:00
2026-04-09 09:40:09 +02:00
2026-04-09 09:40:09 +02:00
2026-04-09 09:40:09 +02:00
2026-04-09 09:40:09 +02:00