mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-08 23:51:08 -09:00
bcee92838f831b54513ebf85a0cb4c9d21144e47
Commit324612d68efixed several compiler warnings, but actually introduced a new one by increasing the buffer size in confdata.c that gets passed along to file_write_dep in util.c, because buf2's size wasn't increased along with it. ./util.c: In function ‘file_write_dep’: ./util.c:86:26: warning: ‘%s’ directive writing 10 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=] 86 | sprintf(buf2, "%s%s", dir, name); | ^~ ./util.c:86:9: note: ‘sprintf’ output 11 or more bytes (assuming 4107) into a destination of size 4097 86 | sprintf(buf2, "%s%s", dir, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix this by increasing the size of buf2 to match the passed buffer size. Signed-off-by: Devreese Jorik <jorik.devreese@barco.com> Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit1f5095c1d3) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
…
…
…
…
…
…
…
…
…
…
…
…
Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at https://buildroot.org/docs.html To build and use the buildroot stuff, do the following: 1) run 'make menuconfig' 2) select the target architecture and the packages you wish to compile 3) run 'make' 4) wait while it compiles 5) find the kernel, bootloader, root filesystem, etc. in output/images You do not need to be root to build or run buildroot. Have fun! Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations. Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: buildroot@buildroot.org You can also find us on #buildroot on OFTC IRC. If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches
Description
Languages
Makefile
62.5%
Python
19%
C
8.5%
Shell
6.1%
PHP
1.4%
Other
2.1%