On Tue, 25 Sep 2018 09:30:58 +0200, Didier 'OdyX' Raboud wrote: > Hi there, > > while packaging the 5.3.1 version for Debian, I didn't manage to make it > build: > > gutenprint.c: In function =E2=80=98cat_ppd': > gutenprint.c:179:64: warning: =E2=80=98%s' directive output may be truncated > writing > up to 1023 bytes into a region of size between 1016 and 1018 [-Wformat- > truncation=] > snprintf(ppd_location, sizeof(ppd_location) - 1, "%s%s%s/ppd/%s%s", > ^~ > gutenprint.c:183:5: > filename, gpext); > ~~~~~~~~ > In file included from /usr/include/stdio.h:862, > from ../../include/gutenprint/gutenprint.h:45, > from i18n.h:20, > from genppd.h:36, > from gutenprint.c:40: > /usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: > =E2=80=98__builtin___snprintf_chk' output 6 or more bytes (assuming 1031) > into a > destination of size 1023 > return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > __bos (__s), __fmt, __va_arg_pack ()); > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: some warnings being treated as errors
I found the right option to reproduce it, but it needs gcc8. I've added a run to the Travis matrix. Interestingly enough, betwen that and --disable-static, I found two memory leaks in the module code. But they only trigger with gcc-8. -- Robert Krawitz <[email protected]> *** MIT Engineers A Proud Tradition http://mitathletics.com *** Member of the League for Programming Freedom -- http://ProgFree.org Project lead for Gutenprint -- http://gimp-print.sourceforge.net "Linux doesn't dictate how I work, I dictate how Linux works." --Eric Crampton
