Files
proxmark3/client/src/emv
Zhaoqi XuandGrok Bot 56efde54f5 emv: fix false -Wstringop-overflow in AID list rule with AVX2
Building the client with -march=x86-64-v3 (the CentOS/RHEL 10
baseline) fails with gcc 14:

  src/emv/emvcore.c:211:24: error: writing 32 bytes into a region of
  size 22 [-Werror=stringop-overflow=]

gcc vectorizes the dash fill loop in aidlist_rule() into 32-byte
stores and loses the pos + 2 < dstlen bound. The bound was correct.
Compute the dash count with the same limit and fill it with memset,
so there is no vectorized loop store to mis-size. Output is unchanged.

Reported in #3671.

Co-Authored-By: Grok Bot <noreply@users.noreply.github.com>
2026-10-23 19:06:41 -04:00
..
2026-09-22 11:14:44 +02:00
2022-01-08 00:40:52 +01:00
2022-01-08 00:40:52 +01:00
2025-03-25 10:17:42 +01:00
2022-01-08 00:40:52 +01:00
2022-01-08 00:40:52 +01:00
2025-03-24 23:46:43 +01:00
2022-01-08 00:40:52 +01:00
2024-09-14 15:03:29 +02:00
2022-01-09 00:33:33 +01:00
2022-01-08 00:40:52 +01:00
2022-01-08 00:40:52 +01:00
2024-04-22 09:21:55 +02:00
2022-01-08 00:40:52 +01:00
2026-02-09 01:12:54 +01:00
2022-01-08 00:40:52 +01:00
2022-06-11 16:16:56 -07:00
2022-01-08 00:40:52 +01:00
2025-03-24 10:23:47 +01:00