Proxmark (version 8fbec33) fails to compile in Raspberry Pi 5 running Debian 13.5.
It fails with the following error:
[-] CC src/cmdmad.c
In function ‘parse_sector_ranges’,
inlined from ‘CmdMADEncode’ at src/cmdmad.c:526:24:
src/cmdmad.c:470:30: error: writing 16 bytes into a region of size 8 [-Werror=stringop-overflow=]
470 | sectors[count++] = (uint8_t)s;
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
src/cmdmad.c: In function ‘CmdMADEncode’:
src/cmdmad.c:525:17: note: at offset [32, 40] into destination object ‘sectors’ of size 40
525 | uint8_t sectors[40] = {0};
| ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:1166: obj/cmdmad.o] Error 1
make[1]: *** [Makefile:186: client/all] Error 2
make[1]: Leaving directory '/home/pyllyukko/git/proxmark3'
make: *** [Makefile:41: all] Error 1
Proxmark (version 8fbec33) fails to compile in Raspberry Pi 5 running Debian 13.5.
It fails with the following error: