Skip to content

Fails to compile in Raspberry Pi 5 (aarch64) #3394

Description

@pyllyukko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions