Bug #6005
closedbuild error alpine linux
0%
Description
Since commit c5d4d7d the below error appear when building tvheadend in alpine linux 3.12.
Link to full build log here [[https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-tvheadend/detail/master/339/pipeline]]
Link to Dockerfile with everything getting installed and configure options for tvheadend [[https://github.com/linuxserver/docker-tvheadend/blob/master/Dockerfile]]
Please tell if there is something else needed.
@CC src/input/mpegts/scanfile.o
src/input/mpegts/scanfile.c: In function 'scanfile_create_network':
src/input/mpegts/scanfile.c:367:46: error: '%s' directive output may be truncated writing up to 269 bytes into a region of size between 256 and 262 [-Werror=format-truncation=]
367 | snprintf(buf3, sizeof(buf3), "%c%3i.%i%c:%s", opos < 0 ? '<' : '>',
| ^~
368 | abs(opos) / 10, abs(opos) % 10,
369 | opos < 0 ? 'W' :'E', buf);
| ~~~
src/input/mpegts/scanfile.c:367:5: note: 'snprintf' output between 9 and 284 bytes into a destination of size 270
367 | snprintf(buf3, sizeof(buf3), "%c%3i.%i%c:%s", opos < 0 ? '<' : '>',
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
368 | abs(opos) / 10, abs(opos) % 10,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
369 | opos < 0 ? 'W' :'E', buf);
| ~~~~~~~~~~~~~~~~~~~~~~~
src/input/mpegts/scanfile.c:372:36: error: '%s' directive output may be truncated writing up to 269 bytes into a region of size between 256 and 262 [-Werror=format-truncation=]
372 | snprintf(buf2, sizeof(buf2), "%s_%s", type, buf);
| ^~ ~~~
src/input/mpegts/scanfile.c:372:3: note: 'snprintf' output 2 or more bytes (assuming 277) into a destination of size 263
372 | snprintf(buf2, sizeof(buf2), "%s_%s", type, buf);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC src/epggrab/otamux.o
cc1: all warnings being treated as errors
make: * [Makefile:717: /tmp/tvheadend/build.linux/src/input/mpegts/scanfile.o] Error 1
make: * Waiting for unfinished jobs....
@