From cb1f66f9f41c330543b452eae65ea04503787c7d Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 6 Feb 2026 18:00:32 +0100 Subject: [PATCH] cppcheck: fix size of pointer <> size of data --- armsrc/seos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/armsrc/seos.c b/armsrc/seos.c index 4e4cacb66..bb6d7a105 100644 --- a/armsrc/seos.c +++ b/armsrc/seos.c @@ -754,8 +754,8 @@ void SimulateSeos(seos_emulate_req_t *msg) { mac_input_idx = 0; - memcpy(mac_input + mac_input_idx, rndCounter, sizeof(rndCounter)); - mac_input_idx += sizeof(rndCounter); + memcpy(mac_input + mac_input_idx, rndCounter, bs); + mac_input_idx += bs; memcpy(mac_input + mac_input_idx, dynamic_response_info.response + tlv_base, tlv_idx - tlv_base); mac_input_idx += tlv_idx - tlv_base;