-
Notifications
You must be signed in to change notification settings - Fork 146
Closed
Description
Hello,
When i follow the instructions listed on the readme, build is failing with the following error (make step):
main.cpp: In function ‘bool _Z9mergeBootv.part.0()’:
main.cpp:1541:36: error: ‘%s’ directive output may be truncated writing up to 557 bytes into a region of size 5 [-Werror=format-truncation=]
1541 | snprintf(buffer, sizeof(buffer), "%s", chip);
| ^~
......
1582 | chipType = convertChipType(chip + 2);
| ~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:1541:10: note: ‘snprintf’ output between 1 and 558 bytes into a destination of size 5
1541 | snprintf(buffer, sizeof(buffer), "%s", chip);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:471: main.o] Error 1
Previous instructions complete with no errors.
gcc-c++ is g++ (GCC) 10.1.1 20200507 (Red Hat 10.1.1-1)
Thank you,
Vadim.
Izaic, ratzupaltuff and DaveWK
Metadata
Metadata
Assignees
Labels
No labels