Diff of the two buildlogs: -- --- b1/build.log 2020-04-23 23:54:31.506527611 +0000 +++ b2/build.log 2020-04-24 00:01:46.621841014 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed May 26 18:16:20 -12 2021 -I: pbuilder-time-stamp: 1622096180 +I: Current time: Fri Apr 24 13:54:39 +14 2020 +I: pbuilder-time-stamp: 1587686079 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -18,7 +18,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Sun Sep 16 04:47:19 2018 -12 +gpgv: Signature made Mon Sep 17 06:47:19 2018 +14 gpgv: using RSA key F88C6DE43699E8F3B3B54C10C7F1676DEA2D01EF gpgv: issuer "jcowgill@debian.org" gpgv: Can't check signature: No public key @@ -43,6 +43,18 @@ dpkg-source: info: applying 0026-fix-permanently-identify.patch I: using fakeroot in build. I: Installing the build-deps +I: user script /srv/workspace/pbuilder/30880/tmp/hooks/D01_modify_environment starting +debug: Running on profitbricks-build2-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/30880/tmp/hooks/D01_modify_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -179,7 +191,7 @@ Get: 73 http://deb.debian.org/debian buster/main i386 libxaw7-dev i386 2:1.0.13-1+b2 [276 kB] Get: 74 http://deb.debian.org/debian buster/main i386 xfonts-encodings all 1:1.0.4-2 [574 kB] Get: 75 http://deb.debian.org/debian buster/main i386 xfonts-utils i386 1:7.7+6 [95.2 kB] -Fetched 27.8 MB in 0s (71.9 MB/s) +Fetched 27.8 MB in 6s (4478 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:i386. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19231 files and directories currently installed.) @@ -506,7 +518,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/nethack-3.6.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/nethack-3.6.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package nethack dpkg-buildpackage: info: source version 3.6.1-1 dpkg-buildpackage: info: source distribution unstable @@ -648,24 +660,16 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o apply.o apply.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o artifact.o artifact.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o attrib.o attrib.c +make[3]: Entering directory '/build/nethack-3.6.1/util' +./makedefs -m cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o ball.o ball.c +make[3]: Leaving directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o bones.o bones.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o botl.o botl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o cmd.o cmd.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dbridge.o dbridge.c -make[3]: Entering directory '/build/nethack-3.6.1/util' -./makedefs -m -make[3]: Leaving directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o decl.o decl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o detect.o detect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dig.o dig.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o display.o display.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o do.o do.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o do_name.o do_name.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o do_wear.o do_wear.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dog.o dog.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dogmove.o dogmove.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dokick.o dokick.c botl.c: In function 'status_hilite_linestr_gather_conditions': botl.c:2405:45: warning: '%s' directive writing up to 255 bytes into a region of size 246 [-Wformat-overflow=] botl.c:2008:16: @@ -684,6 +688,79 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dig.o dig.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o display.o display.c +botl.c: In function 'status_hilite2str': +botl.c:2512:24: warning: '/' directive writing 1 byte into a region of size between 0 and 255 [-Wformat-overflow=] + Sprintf(buf, "%s/%s/%s", initblstats[hl->fld].fldname, behavebuf, clrbuf); + ^ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from botl.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 3 or more bytes (assuming 513) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o do.o do.c +botl.c: In function 'do_statusline2': +botl.c:225:37: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] + Sprintf(newbot2, "%s %s %s %s %s", hlth, cond, dloc, expr, tmmv); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from botl.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 640 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +botl.c:223:37: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] + Sprintf(newbot2, "%s %s %s %s %s", dloc, hlth, cond, expr, tmmv); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from botl.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 640 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +botl.c:221:37: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] + Sprintf(newbot2, "%s %s %s %s %s", dloc, hlth, expr, cond, tmmv); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from botl.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 640 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +botl.c:215:33: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] + Sprintf(newbot2, "%s %s %s %s %s", dloc, hlth, expr, tmmv, cond); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from botl.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 640 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o do_name.o do_name.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o do_wear.o do_wear.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dog.o dog.c do_name.c: In function 'getpos_menu': do_name.c:599:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] Sprintf(fullbuf, "%s%s%s", firstmatch, @@ -698,7 +775,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dothrow.o dothrow.c do_name.c: In function 'getpos': do_name.c:188:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); @@ -726,79 +802,133 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o drawing.o drawing.c -botl.c: In function 'status_hilite2str': -botl.c:2512:24: warning: '/' directive writing 1 byte into a region of size between 0 and 255 [-Wformat-overflow=] - Sprintf(buf, "%s/%s/%s", initblstats[hl->fld].fldname, behavebuf, clrbuf); - ^ +botl.c: In function 'status_hilite_menu_add': +botl.c:2846:58: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] +botl.c:2008:16: + return buf; + ~~~ +botl.c:2846:58: + Sprintf(colorqry, "Choose a color for conditions %s:", + ^~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 3 or more bytes (assuming 513) into a destination of size 256 +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 32 and 287 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dungeon.o dungeon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o eat.o eat.c -botl.c: In function 'do_statusline2': -botl.c:225:37: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] - Sprintf(newbot2, "%s %s %s %s %s", hlth, cond, dloc, expr, tmmv); - ^~ ~~~~ +botl.c:2848:59: warning: '%s' directive writing up to 255 bytes into a region of size 224 [-Wformat-overflow=] +botl.c:2008:16: + return buf; + ~~~ +botl.c:2848:59: + Sprintf(attrqry, "Choose attribute for conditions %s:", + ^~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 640 bytes into a destination of size 256 +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 34 and 289 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -botl.c:223:37: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] - Sprintf(newbot2, "%s %s %s %s %s", dloc, hlth, cond, expr, tmmv); - ^~ ~~~~ +botl.c:2814:59: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] + Sprintf(attrqry, "Choose attribute for when %s is %s%s:", + ^~ +botl.c:2816:17: + inbuf, + ~~~~~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 640 bytes into a destination of size 256 +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 32 or more bytes (assuming 295) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -botl.c:221:37: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] - Sprintf(newbot2, "%s %s %s %s %s", dloc, hlth, expr, cond, tmmv); - ^~ ~~~~ +cmd.c: In function 'extcmd_via_menu': +cmd.c:500:44: warning: '%s' directive writing up to 127 bytes into a region of size 110 [-Wformat-overflow=] + Sprintf(prompt, "Extended Command: %s", cbuf); + ^~ ~~~~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 640 bytes into a destination of size 256 + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 19 and 146 bytes into a destination of size 128 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -botl.c:215:33: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] - Sprintf(newbot2, "%s %s %s %s %s", dloc, hlth, expr, tmmv, cond); - ^~ ~~~~ +cmd.c: In function 'enlightenment': +cmd.c:1541:21: warning: ' the ' directive writing 5 bytes into a region of size between 1 and 256 [-Wformat-overflow=] + Sprintf(buf, "%s the %s's attributes:", tmpbuf, + ^~~~~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 640 bytes into a destination of size 256 + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 20 or more bytes (assuming 275) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] + Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 9 or more bytes (assuming 264) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 243 [-Wformat-overflow=] + Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 19 or more bytes (assuming 274) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dogmove.o dogmove.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dokick.o dokick.c +do_wear.c: In function 'armor_or_accessory_off': +do_wear.c:1429:52: warning: '%s' directive writing up to 127 bytes into a region of size 103 [-Wformat-overflow=] + Sprintf(why, " without taking off your %s first", what); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from do_wear.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 32 and 159 bytes into a destination of size 128 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dothrow.o dothrow.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o drawing.o drawing.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o dungeon.o dungeon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o eat.o eat.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o end.o end.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o engrave.o engrave.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o exper.o exper.c dungeon.c: In function 'print_mapseen': dungeon.c:2945:25: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] Sprintf(buf, "%s%s:", TAB, endgamelevelname(tmpbuf, i)); @@ -852,6 +982,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o exper.o exper.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o explode.o explode.c end.c: In function 'list_vanquished': end.c:1832:39: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] Sprintf(buftoo, "%*s%s", pfx, "", buf); @@ -866,73 +998,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -do_wear.c: In function 'armor_or_accessory_off': -do_wear.c:1429:52: warning: '%s' directive writing up to 127 bytes into a region of size 103 [-Wformat-overflow=] - Sprintf(why, " without taking off your %s first", what); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from do_wear.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 32 and 159 bytes into a destination of size 128 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o explode.o explode.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o extralev.o extralev.c -botl.c: In function 'status_hilite_menu_add': -botl.c:2846:58: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] -botl.c:2008:16: - return buf; - ~~~ -botl.c:2846:58: - Sprintf(colorqry, "Choose a color for conditions %s:", - ^~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 32 and 287 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -botl.c:2848:59: warning: '%s' directive writing up to 255 bytes into a region of size 224 [-Wformat-overflow=] -botl.c:2008:16: - return buf; - ~~~ -botl.c:2848:59: - Sprintf(attrqry, "Choose attribute for conditions %s:", - ^~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 34 and 289 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -botl.c:2814:59: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] - Sprintf(attrqry, "Choose attribute for when %s is %s%s:", - ^~ -botl.c:2816:17: - inbuf, - ~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 32 or more bytes (assuming 295) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o files.o files.c eat.c: In function 'edibility_prompts': eat.c:2313:25: warning: ' like ' directive writing 6 bytes into a region of size between 1 and 256 [-Wformat-overflow=] Sprintf(buf, "%s like %s could be tainted! %s", foodsmell, it_or_they, @@ -1077,23 +1144,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o files.o files.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o fountain.o fountain.c -cmd.c: In function 'extcmd_via_menu': -cmd.c:500:44: warning: '%s' directive writing up to 127 bytes into a region of size 110 [-Wformat-overflow=] - Sprintf(prompt, "Extended Command: %s", cbuf); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 19 and 146 bytes into a destination of size 128 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o hack.o hack.c files.c: In function 'save_savefile_name': files.c:967:12: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void) write(fd, (genericptr_t) SAVEF, sizeof(SAVEF)); @@ -1105,60 +1155,16 @@ files.c:1358:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] (void) setuid(getuid()); ^~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o fountain.o fountain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o hack.o hack.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o hacklib.o hacklib.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o invent.o invent.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o light.o light.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o lock.o lock.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mail.o mail.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o makemon.o makemon.c -cmd.c: In function 'enlightenment': -cmd.c:1541:21: warning: ' the ' directive writing 5 bytes into a region of size between 1 and 256 [-Wformat-overflow=] - Sprintf(buf, "%s the %s's attributes:", tmpbuf, - ^~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 20 or more bytes (assuming 275) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] - Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 9 or more bytes (assuming 264) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 243 [-Wformat-overflow=] - Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 19 or more bytes (assuming 274) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mapglyph.o mapglyph.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mcastu.o mcastu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mhitm.o mhitm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mhitu.o mhitu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o minion.o minion.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mklev.o mklev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mkmap.o mkmap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mkmaze.o mkmaze.c hacklib.c: In function 'yyyymmddhhmmss': hacklib.c:998:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, @@ -1176,6 +1182,12 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mhitm.o mhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mhitu.o mhitu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o minion.o minion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mklev.o mklev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mkmap.o mkmap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mkmaze.o mkmaze.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mkobj.o mkobj.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mkroom.o mkroom.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mon.o mon.c @@ -1185,63 +1197,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mplayer.o mplayer.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o mthrowu.o mthrowu.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o muse.o muse.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o music.o music.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o o_init.o o_init.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o objnam.o objnam.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o options.o options.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o pager.o pager.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o pickup.o pickup.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o pline.o pline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o polyself.o polyself.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o potion.o potion.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o pray.o pray.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o priest.o priest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o quest.o quest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o questpgr.o questpgr.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o read.o read.c -pager.c: In function 'do_screen_description': -pager.c:1014:38: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] -pager.c:1012:27: - *firstmatch = look_buf; - ~~~~~~~~ -pager.c:1014:38: - Sprintf(temp_buf, " (%s)", *firstmatch); - ^~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from pager.c:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 259 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pager.c:1020:44: warning: '%s' directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] - Sprintf(temp_buf, " [seen: %s]", monbuf); - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from pager.c:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 10 and 265 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o rect.o rect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o region.o region.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o restore.o restore.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o rip.o rip.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o rnd.o rnd.c -restore.c: In function 'get_plname_from_file': -restore.c:1164:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] - (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -restore.c:1165:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] - (void) read(fd, (genericptr_t) plbuf, pltmpsiz); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mhitm.c: In function 'hitmm': mhitm.c:576:37: warning: ' squeezes' directive writing 9 bytes into a region of size between 1 and 256 [-Wformat-overflow=] Sprintf(buf, "%s squeezes", magr_name); @@ -1321,9 +1276,49 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o role.o role.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o rumors.o rumors.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o save.o save.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o music.o music.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o o_init.o o_init.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o objnam.o objnam.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o options.o options.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o pager.o pager.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o pickup.o pickup.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o pline.o pline.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o polyself.o polyself.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o potion.o potion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o pray.o pray.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o priest.o priest.c +pager.c: In function 'do_screen_description': +pager.c:1014:38: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] +pager.c:1012:27: + *firstmatch = look_buf; + ~~~~~~~~ +pager.c:1014:38: + Sprintf(temp_buf, " (%s)", *firstmatch); + ^~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from pager.c:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 259 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pager.c:1020:44: warning: '%s' directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] + Sprintf(temp_buf, " [seen: %s]", monbuf); + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from pager.c:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 10 and 265 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o quest.o quest.c options.c: In function 'option_help': options.c:5829:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, @@ -1338,31 +1333,11 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o shk.o shk.c -save.c: In function 'savestateinlock': -save.c:395:16: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] - (void) read(fd, (genericptr_t) &hpid, sizeof(hpid)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:412:16: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] - (void) write(fd, (genericptr_t) &hackpid, sizeof(hackpid)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:416:20: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] - (void) write(fd, (genericptr_t) &currlev, sizeof(currlev)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o shknam.o shknam.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o sit.o sit.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o sounds.o sounds.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o sp_lev.o sp_lev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o spell.o spell.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o sys.o sys.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o steal.o steal.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o steed.o steed.c -sounds.c: In function 'domonnoise': -sounds.c:620:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] - verbl_msg = vampmsg[vampindex]; - ~~~~~~~^~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o teleport.o teleport.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o timeout.o timeout.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o questpgr.o questpgr.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o read.o read.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o rect.o rect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o region.o region.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o restore.o restore.c potion.c: In function 'dodip': potion.c:1879:26: warning: '%s' directive writing up to 127 bytes into a region of size 124 [-Wformat-overflow=] Sprintf(qbuf, "%s%s into the %s?", Dip_, @@ -1403,10 +1378,16 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o topten.o topten.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o track.o track.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o trap.o trap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o u_init.o u_init.c +restore.c: In function 'get_plname_from_file': +restore.c:1164:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] + (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +restore.c:1165:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] + (void) read(fd, (genericptr_t) plbuf, pltmpsiz); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o rip.o rip.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o rnd.o rnd.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o role.o role.c potion.c: In function 'potionhit': potion.c:1354:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); @@ -1434,7 +1415,59 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o uhitm.o uhitm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o rumors.o rumors.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o save.o save.c +save.c: In function 'savestateinlock': +save.c:395:16: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] + (void) read(fd, (genericptr_t) &hpid, sizeof(hpid)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:412:16: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] + (void) write(fd, (genericptr_t) &hackpid, sizeof(hackpid)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:416:20: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] + (void) write(fd, (genericptr_t) &currlev, sizeof(currlev)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o shk.o shk.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o shknam.o shknam.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o sit.o sit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o sounds.o sounds.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o sp_lev.o sp_lev.c +sounds.c: In function 'domonnoise': +sounds.c:620:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] + verbl_msg = vampmsg[vampindex]; + ~~~~~~~^~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o spell.o spell.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o sys.o sys.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o steal.o steal.c +options.c: In function 'doset': +options.c:4155:40: warning: 's [' directive writing 3 bytes into a region of size between 2 and 11 [-Wformat-overflow=] + Sprintf(fmtstr_doset, "%%s%%-%us [%%s]", longest_name_len); + ^~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from options.c:17: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 12 and 21 bytes into a destination of size 16 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +options.c:4288:40: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + Sprintf(buf, "%s:%s", compopt[opt_indx].name, buf2); + ^ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from options.c:17: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o steed.o steed.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o teleport.o teleport.c spell.c: In function 'getspell': spell.c:699:47: warning: '%s' directive writing up to 255 bytes into a region of size 109 [-Wformat-overflow=] Sprintf(qbuf, "Cast which spell? [%s *?]", lets); @@ -1449,7 +1482,12 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o vault.o vault.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o timeout.o timeout.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o topten.o topten.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o track.o track.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o trap.o trap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o u_init.o u_init.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o uhitm.o uhitm.c topten.c: In function 'outentry': topten.c:930:32: warning: '%s' directive writing up to 255 bytes into a region of size 240 [-Wformat-overflow=] Sprintf(linebuf, "%15s %s", "", linebuf3); @@ -1464,14 +1502,13 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o vault.o vault.c make[3]: Entering directory '/build/nethack-3.6.1/util' ./makedefs -z make[3]: Leaving directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o weapon.o weapon.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o were.o were.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o wield.o wield.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o windows.o windows.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o wizard.o wizard.c uhitm.c: In function 'hmon_hitmon': uhitm.c:1232:47: warning: '%s' directive writing up to 255 bytes into a region of size between 244 and 251 [-Wformat-overflow=] Sprintf(silverobjbuf, "Your %s%s %s", @@ -1489,70 +1526,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o worm.o worm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o worn.o worn.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o write.o write.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o zap.o zap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/share/posixregex.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/share/ioctl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/unix/unixmain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/share/unixtty.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/unix/unixunix.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../win/tty/getline.c -options.c: In function 'doset': -options.c:4155:40: warning: 's [' directive writing 3 bytes into a region of size between 2 and 11 [-Wformat-overflow=] - Sprintf(fmtstr_doset, "%%s%%-%us [%%s]", longest_name_len); - ^~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from options.c:17: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 12 and 21 bytes into a destination of size 16 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -options.c:4288:40: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - Sprintf(buf, "%s:%s", compopt[opt_indx].name, buf2); - ^ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from options.c:17: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../win/tty/termcap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../win/tty/topl.c -../sys/unix/unixunix.c: In function 'child': -../sys/unix/unixunix.c:307:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] - (void) setgid(getgid()); - ^~~~~~~~~~~~~~~~ -../sys/unix/unixunix.c:308:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] - (void) setuid(getuid()); - ^~~~~~~~~~~~~~~~ -../sys/unix/unixunix.c:310:16: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] - (void) chdir(getenv("HOME")); - ^~~~~~~~~~~~~~~~~~~~~ -../sys/unix/unixmain.c: In function 'chdirx': -../sys/unix/unixmain.c:476:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] - (void) setgid(getgid()); - ^~~~~~~~~~~~~~~~ -../sys/unix/unixmain.c:477:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] - (void) setuid(getuid()); /* Ron Wessels */ - ^~~~~~~~~~~~~~~~ -../sys/share/unixtty.c: In function 'linux_mapon': -../sys/share/unixtty.c:413:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] - write(1, "\033(B", 3); - ^~~~~~~~~~~~~~~~~~~~~ -../sys/share/unixtty.c: In function 'linux_mapoff': -../sys/share/unixtty.c:423:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] - write(1, "\033(U", 3); - ^~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o windows.o windows.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o wizard.o wizard.c weapon.c: In function 'enhance_weapon_skill': weapon.c:1115:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), @@ -1622,6 +1597,43 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o worm.o worm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o worn.o worn.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o write.o write.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o zap.o zap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/share/posixregex.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/share/ioctl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/unix/unixmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/share/unixtty.c +../sys/unix/unixmain.c: In function 'chdirx': +../sys/unix/unixmain.c:476:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] + (void) setgid(getgid()); + ^~~~~~~~~~~~~~~~ +../sys/unix/unixmain.c:477:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] + (void) setuid(getuid()); /* Ron Wessels */ + ^~~~~~~~~~~~~~~~ +../sys/share/unixtty.c: In function 'linux_mapon': +../sys/share/unixtty.c:413:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] + write(1, "\033(B", 3); + ^~~~~~~~~~~~~~~~~~~~~ +../sys/share/unixtty.c: In function 'linux_mapoff': +../sys/share/unixtty.c:423:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] + write(1, "\033(U", 3); + ^~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../sys/unix/unixunix.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../win/tty/getline.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../win/tty/termcap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../win/tty/topl.c +../sys/unix/unixunix.c: In function 'child': +../sys/unix/unixunix.c:307:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] + (void) setgid(getgid()); + ^~~~~~~~~~~~~~~~ +../sys/unix/unixunix.c:308:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] + (void) setuid(getuid()); + ^~~~~~~~~~~~~~~~ +../sys/unix/unixunix.c:310:16: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] + (void) chdir(getenv("HOME")); + ^~~~~~~~~~~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c ../win/tty/wintty.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o vision.o vision.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -c -o vis_tab.o vis_tab.c @@ -1655,20 +1667,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../win/tty/wintty.c: In function 'tty_player_selection': -../win/tty/wintty.c:851:30: warning: '%s' directive writing up to 127 bytes into a region of size between 95 and 126 [-Wformat-overflow=] - Sprintf(pbuf, "%s, %s%s %s %s", plname, aligns[ALGN].adj, plbuf, - ^~ ~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from ../win/tty/wintty.c:15: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 163) into a destination of size 128 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trap.c: In function 'untrap': trap.c:4324:57: warning: '%s' directive writing up to 255 bytes into a region of size 89 [-Wformat-overflow=] qbuf, "There %s and %s here. %s %s?", @@ -1686,6 +1684,20 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../win/tty/wintty.c: In function 'tty_player_selection': +../win/tty/wintty.c:851:30: warning: '%s' directive writing up to 127 bytes into a region of size between 95 and 126 [-Wformat-overflow=] + Sprintf(pbuf, "%s, %s%s %s %s", plname, aligns[ALGN].adj, plbuf, + ^~ ~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from ../win/tty/wintty.c:15: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 163) into a destination of size 128 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Linking nethack-console. cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -o nethack-console monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o monstr.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o sys.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o posixregex.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o getline.o termcap.o topl.o wintty.o version.o -lcurses nethack-console is up to date. @@ -1798,8 +1810,8 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dlb.o dlb.c make[3]: Entering directory '/build/nethack-3.6.1/util' ./makedefs -o -make[3]: Leaving directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/unix/unixres.c +make[3]: Leaving directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/Window.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/dialogs.c make[3]: Entering directory '/build/nethack-3.6.1/util' @@ -1809,26 +1821,16 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o allmain.o allmain.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o apply.o apply.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o artifact.o artifact.c +make[3]: Entering directory '/build/nethack-3.6.1/util' +./makedefs -m cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o attrib.o attrib.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o ball.o ball.c +make[3]: Leaving directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o bones.o bones.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o botl.o botl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o cmd.o cmd.c -make[3]: Entering directory '/build/nethack-3.6.1/util' -./makedefs -m cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dbridge.o dbridge.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o decl.o decl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o detect.o detect.c -make[3]: Leaving directory '/build/nethack-3.6.1/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dig.o dig.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o display.o display.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do.o do.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do_name.o do_name.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do_wear.o do_wear.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dog.o dog.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dogmove.o dogmove.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dokick.o dokick.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dothrow.o dothrow.c botl.c: In function 'status_hilite_linestr_gather_conditions': botl.c:2405:45: warning: '%s' directive writing up to 255 bytes into a region of size 246 [-Wformat-overflow=] botl.c:2008:16: @@ -1847,49 +1849,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -do_name.c: In function 'getpos_menu': -do_name.c:599:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - Sprintf(fullbuf, "%s%s%s", firstmatch, - ^ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o drawing.o drawing.c -do_name.c: In function 'getpos': -do_name.c:188:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -do_name.c:188:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dungeon.o dungeon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o detect.o detect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dig.o dig.c botl.c: In function 'status_hilite2str': botl.c:2512:24: warning: '/' directive writing 1 byte into a region of size between 0 and 255 [-Wformat-overflow=] Sprintf(buf, "%s/%s/%s", initblstats[hl->fld].fldname, behavebuf, clrbuf); @@ -1904,8 +1865,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o eat.o eat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o end.o end.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o display.o display.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do.o do.c botl.c: In function 'do_statusline2': botl.c:225:37: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] Sprintf(newbot2, "%s %s %s %s %s", hlth, cond, dloc, expr, tmmv); @@ -1959,92 +1920,49 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o engrave.o engrave.c -dungeon.c: In function 'print_mapseen': -dungeon.c:2945:25: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] - Sprintf(buf, "%s%s:", TAB, endgamelevelname(tmpbuf, i)); - ^~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from dungeon.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 260 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dungeon.c:2875:33: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - Sprintf(outbuf, " (play %s to open or close drawbridge)", tmp); - ^~ ~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from dungeon.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 37 and 292 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dungeon.c:3036:35: warning: '%s' directive writing up to 255 bytes into a region of size 240 [-Wformat-overflow=] - Sprintf(buf, "%sThe castle%s.", PREFIX, tunesuffix(mptr, tmpbuf)); - ^~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from dungeon.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 18 and 273 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dungeon.c:3085:40: warning: '%s' directive writing up to 255 bytes into a region of size 242 [-Wformat-overflow=] - Sprintf(buf, "%s%syou, %s%c", PREFIX, TAB, tmpbuf, - ^~ ~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do_name.o do_name.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o do_wear.o do_wear.c +do_name.c: In function 'getpos_menu': +do_name.c:599:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + Sprintf(fullbuf, "%s%s%s", firstmatch, + ^ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from dungeon.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 16 and 271 bytes into a destination of size 256 + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o exper.o exper.c -do_wear.c: In function 'armor_or_accessory_off': -do_wear.c:1429:52: warning: '%s' directive writing up to 127 bytes into a region of size 103 [-Wformat-overflow=] - Sprintf(why, " without taking off your %s first", what); - ^~ ~~~~ +do_name.c: In function 'getpos': +do_name.c:188:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + ^~ ~~~~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from do_wear.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 32 and 159 bytes into a destination of size 128 + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -end.c: In function 'list_vanquished': -end.c:1832:39: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - Sprintf(buftoo, "%*s%s", pfx, "", buf); - ^ +do_name.c:188:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + ^~ ~~~~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from end.c:8: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 1 and 261 bytes into a destination of size 256 + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o explode.o explode.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o extralev.o extralev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o files.o files.c botl.c: In function 'status_hilite_menu_add': botl.c:2846:58: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] botl.c:2008:16: @@ -2096,8 +2014,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o fountain.o fountain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hack.o hack.c cmd.c: In function 'extcmd_via_menu': cmd.c:500:44: warning: '%s' directive writing up to 127 bytes into a region of size 110 [-Wformat-overflow=] Sprintf(prompt, "Extended Command: %s", cbuf); @@ -2112,7 +2028,140 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hacklib.o hacklib.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dog.o dog.c +cmd.c: In function 'enlightenment': +cmd.c:1541:21: warning: ' the ' directive writing 5 bytes into a region of size between 1 and 256 [-Wformat-overflow=] + Sprintf(buf, "%s the %s's attributes:", tmpbuf, + ^~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 20 or more bytes (assuming 275) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] + Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 9 or more bytes (assuming 264) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 243 [-Wformat-overflow=] + Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 19 or more bytes (assuming 274) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dogmove.o dogmove.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dokick.o dokick.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dothrow.o dothrow.c +do_wear.c: In function 'armor_or_accessory_off': +do_wear.c:1429:52: warning: '%s' directive writing up to 127 bytes into a region of size 103 [-Wformat-overflow=] + Sprintf(why, " without taking off your %s first", what); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from do_wear.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 32 and 159 bytes into a destination of size 128 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o drawing.o drawing.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o dungeon.o dungeon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o eat.o eat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o end.o end.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o engrave.o engrave.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o exper.o exper.c +dungeon.c: In function 'print_mapseen': +dungeon.c:2945:25: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] + Sprintf(buf, "%s%s:", TAB, endgamelevelname(tmpbuf, i)); + ^~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from dungeon.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 260 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dungeon.c:2875:33: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + Sprintf(outbuf, " (play %s to open or close drawbridge)", tmp); + ^~ ~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from dungeon.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 37 and 292 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dungeon.c:3036:35: warning: '%s' directive writing up to 255 bytes into a region of size 240 [-Wformat-overflow=] + Sprintf(buf, "%sThe castle%s.", PREFIX, tunesuffix(mptr, tmpbuf)); + ^~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from dungeon.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 18 and 273 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dungeon.c:3085:40: warning: '%s' directive writing up to 255 bytes into a region of size 242 [-Wformat-overflow=] + Sprintf(buf, "%s%syou, %s%c", PREFIX, TAB, tmpbuf, + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from dungeon.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 16 and 271 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +end.c: In function 'list_vanquished': +end.c:1832:39: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + Sprintf(buftoo, "%*s%s", pfx, "", buf); + ^ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from end.c:8: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 1 and 261 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o explode.o explode.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o extralev.o extralev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o files.o files.c eat.c: In function 'edibility_prompts': eat.c:2313:25: warning: ' like ' directive writing 6 bytes into a region of size between 1 and 256 [-Wformat-overflow=] Sprintf(buf, "%s like %s could be tainted! %s", foodsmell, it_or_they, @@ -2268,53 +2317,14 @@ files.c:1358:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] (void) setuid(getuid()); ^~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o fountain.o fountain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hack.o hack.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o hacklib.o hacklib.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o invent.o invent.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o light.o light.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o lock.o lock.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mail.o mail.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o makemon.o makemon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mapglyph.o mapglyph.c -cmd.c: In function 'enlightenment': -cmd.c:1541:21: warning: ' the ' directive writing 5 bytes into a region of size between 1 and 256 [-Wformat-overflow=] - Sprintf(buf, "%s the %s's attributes:", tmpbuf, - ^~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 20 or more bytes (assuming 275) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] - Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 9 or more bytes (assuming 264) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 243 [-Wformat-overflow=] - Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 19 or more bytes (assuming 274) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mcastu.o mcastu.c hacklib.c: In function 'yyyymmddhhmmss': hacklib.c:998:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, @@ -2332,6 +2342,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mapglyph.o mapglyph.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mcastu.o mcastu.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mhitm.o mhitm.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mhitu.o mhitu.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o minion.o minion.c @@ -2343,66 +2355,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mon.o mon.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mondata.o mondata.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o monmove.o monmove.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o monstr.o monstr.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mplayer.o mplayer.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mthrowu.o mthrowu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o muse.o muse.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o music.o music.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o o_init.o o_init.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o objnam.o objnam.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o options.o options.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pager.o pager.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pickup.o pickup.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pline.o pline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o polyself.o polyself.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o potion.o potion.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pray.o pray.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o priest.o priest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o quest.o quest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o questpgr.o questpgr.c -pager.c: In function 'do_screen_description': -pager.c:1014:38: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] -pager.c:1012:27: - *firstmatch = look_buf; - ~~~~~~~~ -pager.c:1014:38: - Sprintf(temp_buf, " (%s)", *firstmatch); - ^~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from pager.c:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 259 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pager.c:1020:44: warning: '%s' directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] - Sprintf(temp_buf, " [seen: %s]", monbuf); - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from pager.c:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 10 and 265 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o read.o read.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rect.o rect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o region.o region.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o restore.o restore.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rip.o rip.c -restore.c: In function 'get_plname_from_file': -restore.c:1164:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] - (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -restore.c:1165:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] - (void) read(fd, (genericptr_t) plbuf, pltmpsiz); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mhitm.c: In function 'hitmm': mhitm.c:576:37: warning: ' squeezes' directive writing 9 bytes into a region of size between 1 and 256 [-Wformat-overflow=] Sprintf(buf, "%s squeezes", magr_name); @@ -2482,8 +2434,54 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rnd.o rnd.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o role.o role.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o monstr.o monstr.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mplayer.o mplayer.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o mthrowu.o mthrowu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o muse.o muse.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o music.o music.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o o_init.o o_init.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o objnam.o objnam.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o options.o options.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pager.o pager.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pickup.o pickup.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pline.o pline.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o polyself.o polyself.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o potion.o potion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o pray.o pray.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o priest.o priest.c +pager.c: In function 'do_screen_description': +pager.c:1014:38: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] +pager.c:1012:27: + *firstmatch = look_buf; + ~~~~~~~~ +pager.c:1014:38: + Sprintf(temp_buf, " (%s)", *firstmatch); + ^~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from pager.c:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 259 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pager.c:1020:44: warning: '%s' directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] + Sprintf(temp_buf, " [seen: %s]", monbuf); + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from pager.c:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 10 and 265 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o quest.o quest.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o questpgr.o questpgr.c options.c: In function 'option_help': options.c:5829:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, @@ -2498,21 +2496,10 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rumors.o rumors.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o save.o save.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shk.o shk.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shknam.o shknam.c -save.c: In function 'savestateinlock': -save.c:395:16: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] - (void) read(fd, (genericptr_t) &hpid, sizeof(hpid)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:412:16: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] - (void) write(fd, (genericptr_t) &hackpid, sizeof(hackpid)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:416:20: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] - (void) write(fd, (genericptr_t) &currlev, sizeof(currlev)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sit.o sit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o read.o read.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rect.o rect.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o region.o region.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o restore.o restore.c potion.c: In function 'dodip': potion.c:1879:26: warning: '%s' directive writing up to 127 bytes into a region of size 124 [-Wformat-overflow=] Sprintf(qbuf, "%s%s into the %s?", Dip_, @@ -2553,11 +2540,16 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sounds.o sounds.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sp_lev.o sp_lev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o spell.o spell.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sys.o sys.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steal.o steal.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rip.o rip.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rnd.o rnd.c +restore.c: In function 'get_plname_from_file': +restore.c:1164:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] + (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +restore.c:1165:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] + (void) read(fd, (genericptr_t) plbuf, pltmpsiz); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o role.o role.c potion.c: In function 'potionhit': potion.c:1354:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); @@ -2585,16 +2577,62 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o rumors.o rumors.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o save.o save.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shk.o shk.c +save.c: In function 'savestateinlock': +save.c:395:16: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] + (void) read(fd, (genericptr_t) &hpid, sizeof(hpid)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:412:16: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] + (void) write(fd, (genericptr_t) &hackpid, sizeof(hackpid)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:416:20: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] + (void) write(fd, (genericptr_t) &currlev, sizeof(currlev)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o shknam.o shknam.c +options.c: In function 'doset': +options.c:4155:40: warning: 's [' directive writing 3 bytes into a region of size between 2 and 11 [-Wformat-overflow=] + Sprintf(fmtstr_doset, "%%s%%-%us [%%s]", longest_name_len); + ^~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from options.c:17: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 12 and 21 bytes into a destination of size 16 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +options.c:4288:40: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + Sprintf(buf, "%s:%s", compopt[opt_indx].name, buf2); + ^ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from options.c:17: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sit.o sit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sounds.o sounds.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sp_lev.o sp_lev.c sounds.c: In function 'domonnoise': sounds.c:620:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] verbl_msg = vampmsg[vampindex]; ~~~~~~~^~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o spell.o spell.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o sys.o sys.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steal.o steal.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o steed.o steed.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o teleport.o teleport.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o timeout.o timeout.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o topten.o topten.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o track.o track.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o trap.o trap.c spell.c: In function 'getspell': spell.c:699:47: warning: '%s' directive writing up to 255 bytes into a region of size 109 [-Wformat-overflow=] Sprintf(qbuf, "Cast which spell? [%s *?]", lets); @@ -2609,7 +2647,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o u_init.o u_init.c topten.c: In function 'outentry': topten.c:930:32: warning: '%s' directive writing up to 255 bytes into a region of size 240 [-Wformat-overflow=] Sprintf(linebuf, "%15s %s", "", linebuf3); @@ -2624,17 +2661,14 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o trap.o trap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o u_init.o u_init.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o uhitm.o uhitm.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o vault.o vault.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o weapon.o weapon.c make[3]: Entering directory '/build/nethack-3.6.1/util' ./makedefs -z -make[3]: Leaving directory '/build/nethack-3.6.1/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o weapon.o weapon.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o were.o were.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wield.o wield.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o windows.o windows.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wizard.o wizard.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o worm.o worm.c uhitm.c: In function 'hmon_hitmon': uhitm.c:1232:47: warning: '%s' directive writing up to 255 bytes into a region of size between 244 and 251 [-Wformat-overflow=] Sprintf(silverobjbuf, "Your %s%s %s", @@ -2652,40 +2686,12 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +make[3]: Leaving directory '/build/nethack-3.6.1/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wield.o wield.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o windows.o windows.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o wizard.o wizard.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o worm.o worm.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o worn.o worn.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o write.o write.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o zap.o zap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/share/posixregex.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/share/ioctl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/unix/unixmain.c -options.c: In function 'doset': -options.c:4155:40: warning: 's [' directive writing 3 bytes into a region of size between 2 and 11 [-Wformat-overflow=] - Sprintf(fmtstr_doset, "%%s%%-%us [%%s]", longest_name_len); - ^~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from options.c:17: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 12 and 21 bytes into a destination of size 16 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -options.c:4288:40: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - Sprintf(buf, "%s:%s", compopt[opt_indx].name, buf2); - ^ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from options.c:17: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/share/unixtty.c weapon.c: In function 'enhance_weapon_skill': weapon.c:1115:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), @@ -2755,6 +2761,12 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o write.o write.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o zap.o zap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/share/posixregex.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/share/ioctl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/unix/unixmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/share/unixtty.c ../sys/unix/unixmain.c: In function 'chdirx': ../sys/unix/unixmain.c:476:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] (void) setgid(getgid()); @@ -2762,6 +2774,8 @@ ../sys/unix/unixmain.c:477:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] (void) setuid(getuid()); /* Ron Wessels */ ^~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/unix/unixunix.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/tty/getline.c ../sys/share/unixtty.c: In function 'linux_mapon': ../sys/share/unixtty.c:413:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1, "\033(B", 3); @@ -2770,12 +2784,6 @@ ../sys/share/unixtty.c:423:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(1, "\033(U", 3); ^~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../sys/unix/unixunix.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/tty/getline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/tty/termcap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/tty/topl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/tty/wintty.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/winX.c ../sys/unix/unixunix.c: In function 'child': ../sys/unix/unixunix.c:307:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] (void) setgid(getgid()); @@ -2786,7 +2794,18 @@ ../sys/unix/unixunix.c:310:16: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] (void) chdir(getenv("HOME")); ^~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/tty/termcap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/tty/topl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/tty/wintty.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/winX.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/winmap.c +../win/X11/winmap.c: In function 'map_update': +../win/X11/winmap.c:1240:24: warning: variable 'win_start_col' set but not used [-Wunused-but-set-variable] + int win_start_row, win_start_col; + ^~~~~~~~~~~~~ +../win/X11/winmap.c:1240:9: warning: variable 'win_start_row' set but not used [-Wunused-but-set-variable] + int win_start_row, win_start_col; + ^~~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/winmenu.c ../win/X11/winX.c: In function 'X11_init_nhwindows': ../win/X11/winX.c:1216:12: warning: ignoring return value of 'seteuid', declared with attribute warn_unused_result [-Wunused-result] @@ -2797,25 +2816,49 @@ ^~~~~~~~~~~~~~~ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/winmesg.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/winmisc.c -../win/X11/winmap.c: In function 'map_update': -../win/X11/winmap.c:1240:24: warning: variable 'win_start_col' set but not used [-Wunused-but-set-variable] - int win_start_row, win_start_col; - ^~~~~~~~~~~~~ -../win/X11/winmap.c:1240:9: warning: variable 'win_start_row' set but not used [-Wunused-but-set-variable] - int win_start_row, win_start_col; - ^~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/winstat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/wintext.c ../win/X11/winmisc.c: In function 'X11_player_selection_randomize': ../win/X11/winmisc.c:495:13: warning: variable 'fully_specified_role' set but not used [-Wunused-but-set-variable] boolean fully_specified_role, choose_race_first; ^~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/winstat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/wintext.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/X11/winval.c make[3]: Entering directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c ../win/share/tilemap.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o vision.o vision.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o vis_tab.o vis_tab.c cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -o tilemap tilemap.o +../win/tty/wintty.c: In function 'tty_player_selection': +../win/tty/wintty.c:851:30: warning: '%s' directive writing up to 127 bytes into a region of size between 95 and 126 [-Wformat-overflow=] + Sprintf(pbuf, "%s, %s%s %s %s", plname, aligns[ALGN].adj, plbuf, + ^~ ~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from ../win/tty/wintty.c:15: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 163) into a destination of size 128 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +trap.c: In function 'untrap': +trap.c:4324:57: warning: '%s' directive writing up to 255 bytes into a region of size 89 [-Wformat-overflow=] + qbuf, "There %s and %s here. %s %s?", + ^~ +trap.c:4327:68: + (ttmp->ttyp == WEB) ? "Remove" : "Disarm", the_trap); + ~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from trap.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 41 or more bytes (assuming 296) into a destination of size 128 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tilemap make[3]: Leaving directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DX11_GRAPHICS -c -o tile.o tile.c @@ -2849,37 +2892,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -../win/tty/wintty.c: In function 'tty_player_selection': -../win/tty/wintty.c:851:30: warning: '%s' directive writing up to 127 bytes into a region of size between 95 and 126 [-Wformat-overflow=] - Sprintf(pbuf, "%s, %s%s %s %s", plname, aligns[ALGN].adj, plbuf, - ^~ ~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from ../win/tty/wintty.c:15: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 163) into a destination of size 128 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -trap.c: In function 'untrap': -trap.c:4324:57: warning: '%s' directive writing up to 255 bytes into a region of size 89 [-Wformat-overflow=] - qbuf, "There %s and %s here. %s %s?", - ^~ -trap.c:4327:68: - (ttmp->ttyp == WEB) ? "Remove" : "Disarm", the_trap); - ~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from trap.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 41 or more bytes (assuming 296) into a destination of size 128 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Linking nethack-x11. cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -o nethack-x11 monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o monstr.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o sys.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o posixregex.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o getline.o termcap.o topl.o wintty.o Window.o dialogs.o winX.o winmap.o winmenu.o winmesg.o winmisc.o winstat.o wintext.o winval.o tile.o version.o -lncurses -lXaw -Wl,--as-needed -lXmu -lXext -Wl,--no-as-needed -lXt -lXpm -lX11 -Wl,--as-needed -lm -Wl,--no-as-needed nethack-x11 is up to date. @@ -2992,8 +3004,8 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dlb.o dlb.c make[3]: Entering directory '/build/nethack-3.6.1/util' ./makedefs -o -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/unix/unixres.c make[3]: Leaving directory '/build/nethack-3.6.1/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/unix/unixres.c make[3]: Entering directory '/build/nethack-3.6.1/util' ./makedefs -p make[3]: Leaving directory '/build/nethack-3.6.1/util' @@ -3001,25 +3013,17 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o allmain.o allmain.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o apply.o apply.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o artifact.o artifact.c +make[3]: Entering directory '/build/nethack-3.6.1/util' +./makedefs -m cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o attrib.o attrib.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o ball.o ball.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o bones.o bones.c +make[3]: Leaving directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o botl.o botl.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o cmd.o cmd.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dbridge.o dbridge.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o decl.o decl.c -make[3]: Entering directory '/build/nethack-3.6.1/util' -./makedefs -m cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o detect.o detect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dig.o dig.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o display.o display.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o do.o do.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o do_name.o do_name.c -make[3]: Leaving directory '/build/nethack-3.6.1/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o do_wear.o do_wear.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dog.o dog.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dogmove.o dogmove.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dokick.o dokick.c botl.c: In function 'status_hilite_linestr_gather_conditions': botl.c:2405:45: warning: '%s' directive writing up to 255 bytes into a region of size 246 [-Wformat-overflow=] botl.c:2008:16: @@ -3038,49 +3042,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -do_name.c: In function 'getpos_menu': -do_name.c:599:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - Sprintf(fullbuf, "%s%s%s", firstmatch, - ^ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dothrow.o dothrow.c -do_name.c: In function 'getpos': -do_name.c:188:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -do_name.c:188:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); - ^~ ~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from do_name.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o drawing.o drawing.c botl.c: In function 'status_hilite2str': botl.c:2512:24: warning: '/' directive writing 1 byte into a region of size between 0 and 255 [-Wformat-overflow=] Sprintf(buf, "%s/%s/%s", initblstats[hl->fld].fldname, behavebuf, clrbuf); @@ -3095,7 +3056,9 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dungeon.o dungeon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dig.o dig.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o display.o display.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o do.o do.c botl.c: In function 'do_statusline2': botl.c:225:37: warning: '%s' directive writing up to 127 bytes into a region of size between 0 and 254 [-Wformat-overflow=] Sprintf(newbot2, "%s %s %s %s %s", hlth, cond, dloc, expr, tmmv); @@ -3149,63 +3112,103 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o eat.o eat.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o end.o end.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o engrave.o engrave.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o exper.o exper.c -dungeon.c: In function 'print_mapseen': -dungeon.c:2945:25: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] - Sprintf(buf, "%s%s:", TAB, endgamelevelname(tmpbuf, i)); - ^~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o do_name.o do_name.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o do_wear.o do_wear.c +do_name.c: In function 'getpos_menu': +do_name.c:599:37: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + Sprintf(fullbuf, "%s%s%s", firstmatch, + ^ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from dungeon.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 260 bytes into a destination of size 256 + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 1 or more bytes (assuming 257) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dungeon.c:2875:33: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] - Sprintf(outbuf, " (play %s to open or close drawbridge)", tmp); - ^~ ~~~ +botl.c: In function 'status_hilite_menu_add': +botl.c:2846:58: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] +botl.c:2008:16: + return buf; + ~~~ +botl.c:2846:58: + Sprintf(colorqry, "Choose a color for conditions %s:", + ^~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from dungeon.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 37 and 292 bytes into a destination of size 256 + from botl.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 32 and 287 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dungeon.c:3036:35: warning: '%s' directive writing up to 255 bytes into a region of size 240 [-Wformat-overflow=] - Sprintf(buf, "%sThe castle%s.", PREFIX, tunesuffix(mptr, tmpbuf)); - ^~ +botl.c:2848:59: warning: '%s' directive writing up to 255 bytes into a region of size 224 [-Wformat-overflow=] +botl.c:2008:16: + return buf; + ~~~ +botl.c:2848:59: + Sprintf(attrqry, "Choose attribute for conditions %s:", + ^~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from dungeon.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 18 and 273 bytes into a destination of size 256 + from botl.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 34 and 289 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -dungeon.c:3085:40: warning: '%s' directive writing up to 255 bytes into a region of size 242 [-Wformat-overflow=] - Sprintf(buf, "%s%syou, %s%c", PREFIX, TAB, tmpbuf, - ^~ ~~~~~~ +botl.c:2814:59: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] + Sprintf(attrqry, "Choose attribute for when %s is %s%s:", + ^~ +botl.c:2816:17: + inbuf, + ~~~~~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from dungeon.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 16 and 271 bytes into a destination of size 256 + from botl.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 32 or more bytes (assuming 295) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +do_name.c: In function 'getpos': +do_name.c:188:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +do_name.c:188:31: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + Sprintf(sbuf, "Type a %s when you are at the right place.", kbuf); + ^~ ~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from do_name.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 41 and 296 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dog.o dog.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dogmove.o dogmove.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dokick.o dokick.c do_wear.c: In function 'armor_or_accessory_off': do_wear.c:1429:52: warning: '%s' directive writing up to 127 bytes into a region of size 103 [-Wformat-overflow=] Sprintf(why, " without taking off your %s first", what); @@ -3220,90 +3223,121 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -end.c: In function 'list_vanquished': -end.c:1832:39: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - Sprintf(buftoo, "%*s%s", pfx, "", buf); - ^ +cmd.c: In function 'enlightenment': +cmd.c:1541:21: warning: ' the ' directive writing 5 bytes into a region of size between 1 and 256 [-Wformat-overflow=] + Sprintf(buf, "%s the %s's attributes:", tmpbuf, + ^~~~~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from end.c:8: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 1 and 261 bytes into a destination of size 256 + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 20 or more bytes (assuming 275) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o explode.o explode.c -botl.c: In function 'status_hilite_menu_add': -botl.c:2846:58: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] -botl.c:2008:16: - return buf; - ~~~ -botl.c:2846:58: - Sprintf(colorqry, "Choose a color for conditions %s:", - ^~ +cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] + Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, + ^~ ~~~~~~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 32 and 287 bytes into a destination of size 256 + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 9 or more bytes (assuming 264) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -botl.c:2848:59: warning: '%s' directive writing up to 255 bytes into a region of size 224 [-Wformat-overflow=] -botl.c:2008:16: - return buf; - ~~~ -botl.c:2848:59: - Sprintf(attrqry, "Choose attribute for conditions %s:", - ^~ +cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 243 [-Wformat-overflow=] + Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, + ^~ ~~~~~~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 34 and 289 bytes into a destination of size 256 + from cmd.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 19 or more bytes (assuming 274) into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -botl.c:2814:59: warning: '%s' directive writing up to 255 bytes into a region of size 226 [-Wformat-overflow=] - Sprintf(attrqry, "Choose attribute for when %s is %s%s:", - ^~ -botl.c:2816:17: - inbuf, - ~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dothrow.o dothrow.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o drawing.o drawing.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o dungeon.o dungeon.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o eat.o eat.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o end.o end.c +dungeon.c: In function 'print_mapseen': +dungeon.c:2945:25: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] + Sprintf(buf, "%s%s:", TAB, endgamelevelname(tmpbuf, i)); + ^~ In file included from /usr/include/stdio.h:873, from ../include/global.h:9, from ../include/config.h:564, from ../include/hack.h:10, - from botl.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 32 or more bytes (assuming 295) into a destination of size 256 + from dungeon.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 5 and 260 bytes into a destination of size 256 return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o extralev.o extralev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o files.o files.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o fountain.o fountain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o hack.o hack.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o hacklib.o hacklib.c -files.c: In function 'save_savefile_name': -files.c:967:12: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] - (void) write(fd, (genericptr_t) SAVEF, sizeof(SAVEF)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -files.c: In function 'docompress_file': -files.c:1357:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] - (void) setgid(getgid()); - ^~~~~~~~~~~~~~~~ -files.c:1358:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] - (void) setuid(getuid()); - ^~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o invent.o invent.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o light.o light.c +dungeon.c:2875:33: warning: '%s' directive writing up to 255 bytes into a region of size 249 [-Wformat-overflow=] + Sprintf(outbuf, " (play %s to open or close drawbridge)", tmp); + ^~ ~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from dungeon.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 37 and 292 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dungeon.c:3036:35: warning: '%s' directive writing up to 255 bytes into a region of size 240 [-Wformat-overflow=] + Sprintf(buf, "%sThe castle%s.", PREFIX, tunesuffix(mptr, tmpbuf)); + ^~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from dungeon.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 18 and 273 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +dungeon.c:3085:40: warning: '%s' directive writing up to 255 bytes into a region of size 242 [-Wformat-overflow=] + Sprintf(buf, "%s%syou, %s%c", PREFIX, TAB, tmpbuf, + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from dungeon.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 16 and 271 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o engrave.o engrave.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o exper.o exper.c +end.c: In function 'list_vanquished': +end.c:1832:39: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + Sprintf(buftoo, "%*s%s", pfx, "", buf); + ^ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from end.c:8: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 1 and 261 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o explode.o explode.c eat.c: In function 'edibility_prompts': eat.c:2313:25: warning: ' like ' directive writing 6 bytes into a region of size between 1 and 256 [-Wformat-overflow=] Sprintf(buf, "%s like %s could be tainted! %s", foodsmell, it_or_they, @@ -3448,51 +3482,27 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cmd.c: In function 'enlightenment': -cmd.c:1541:21: warning: ' the ' directive writing 5 bytes into a region of size between 1 and 256 [-Wformat-overflow=] - Sprintf(buf, "%s the %s's attributes:", tmpbuf, - ^~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 20 or more bytes (assuming 275) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=] - Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 9 or more bytes (assuming 264) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cmd.c:1606:28: warning: '%s' directive writing up to 255 bytes into a region of size 243 [-Wformat-overflow=] - Sprintf(buf, "%sin %s%s form", !final ? "currently " : "", tmpbuf, - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from cmd.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 19 or more bytes (assuming 274) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o extralev.o extralev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o files.o files.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o fountain.o fountain.c +files.c: In function 'save_savefile_name': +files.c:967:12: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] + (void) write(fd, (genericptr_t) SAVEF, sizeof(SAVEF)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +files.c: In function 'docompress_file': +files.c:1357:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] + (void) setgid(getgid()); + ^~~~~~~~~~~~~~~~ +files.c:1358:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] + (void) setuid(getuid()); + ^~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o hack.o hack.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o hacklib.o hacklib.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o invent.o invent.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o light.o light.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o lock.o lock.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mail.o mail.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o makemon.o makemon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mapglyph.o mapglyph.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mcastu.o mcastu.c hacklib.c: In function 'yyyymmddhhmmss': hacklib.c:998:28: warning: '%02d' directive writing between 2 and 11 bytes into a region of size between 4 and 11 [-Wformat-overflow=] Sprintf(datestr, "%04ld%02d%02d%02d%02d%02d", datenum, lt->tm_mon + 1, @@ -3510,6 +3520,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mapglyph.o mapglyph.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mcastu.o mcastu.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mhitm.o mhitm.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mhitu.o mhitu.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o minion.o minion.c @@ -3523,69 +3535,6 @@ cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o monmove.o monmove.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o monstr.o monstr.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mplayer.o mplayer.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mthrowu.o mthrowu.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o muse.o muse.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o music.o music.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o o_init.o o_init.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o objnam.o objnam.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o options.o options.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o pager.o pager.c -options.c: In function 'initoptions_init': -options.c:668:11: warning: unused variable 'opts' [-Wunused-variable] - char *opts; - ^~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o pickup.o pickup.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o pline.o pline.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o polyself.o polyself.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o potion.o potion.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o pray.o pray.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o priest.o priest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o quest.o quest.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o questpgr.o questpgr.c -pager.c: In function 'do_screen_description': -pager.c:1014:38: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] -pager.c:1012:27: - *firstmatch = look_buf; - ~~~~~~~~ -pager.c:1014:38: - Sprintf(temp_buf, " (%s)", *firstmatch); - ^~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from pager.c:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 259 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -pager.c:1020:44: warning: '%s' directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] - Sprintf(temp_buf, " [seen: %s]", monbuf); - ^~ ~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from pager.c:9: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 10 and 265 bytes into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o read.o read.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o rect.o rect.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o region.o region.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o restore.o restore.c -restore.c: In function 'get_plname_from_file': -restore.c:1164:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] - (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -restore.c:1165:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] - (void) read(fd, (genericptr_t) plbuf, pltmpsiz); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o rip.o rip.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o rnd.o rnd.c mhitm.c: In function 'hitmm': mhitm.c:576:37: warning: ' squeezes' directive writing 9 bytes into a region of size between 1 and 256 [-Wformat-overflow=] Sprintf(buf, "%s squeezes", magr_name); @@ -3665,6 +3614,55 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o mthrowu.o mthrowu.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o muse.o muse.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o music.o music.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o o_init.o o_init.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o objnam.o objnam.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o options.o options.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o pager.o pager.c +options.c: In function 'initoptions_init': +options.c:668:11: warning: unused variable 'opts' [-Wunused-variable] + char *opts; + ^~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o pickup.o pickup.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o pline.o pline.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o polyself.o polyself.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o potion.o potion.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o pray.o pray.c +pager.c: In function 'do_screen_description': +pager.c:1014:38: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] +pager.c:1012:27: + *firstmatch = look_buf; + ~~~~~~~~ +pager.c:1014:38: + Sprintf(temp_buf, " (%s)", *firstmatch); + ^~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from pager.c:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 4 and 259 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +pager.c:1020:44: warning: '%s' directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] + Sprintf(temp_buf, " [seen: %s]", monbuf); + ^~ ~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from pager.c:9: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 10 and 265 bytes into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o priest.o priest.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o quest.o quest.c options.c: In function 'option_help': options.c:5829:28: warning: ' - ' directive writing 3 bytes into a region of size between 1 and 236 [-Wformat-overflow=] Sprintf(buf, "%-20s - %s%c", buf2, compopt[i].descr, @@ -3679,34 +3677,8 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o role.o role.c -In file included from ../include/config.h:392, - from ../include/hack.h:10, - from rip.c:6: -rip.c:8:23: warning: 'center' declared 'static' but never defined [-Wunused-function] - STATIC_DCL void FDECL(center, (int, char *)); - ^~~~~~ -../include/tradstdc.h:193:21: note: in definition of macro 'FDECL' - #define FDECL(f, p) f p - ^ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o rumors.o rumors.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o save.o save.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o shk.o shk.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o shknam.o shknam.c -save.c: In function 'savestateinlock': -save.c:395:16: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] - (void) read(fd, (genericptr_t) &hpid, sizeof(hpid)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:412:16: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] - (void) write(fd, (genericptr_t) &hackpid, sizeof(hackpid)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -save.c:416:20: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] - (void) write(fd, (genericptr_t) &currlev, sizeof(currlev)); - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o sit.o sit.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o sounds.o sounds.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o sp_lev.o sp_lev.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o spell.o spell.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o questpgr.o questpgr.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o read.o read.c potion.c: In function 'dodip': potion.c:1879:26: warning: '%s' directive writing up to 127 bytes into a region of size 124 [-Wformat-overflow=] Sprintf(qbuf, "%s%s into the %s?", Dip_, @@ -3747,15 +3719,7 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o sys.o sys.c -sounds.c: In function 'domonnoise': -sounds.c:620:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] - verbl_msg = vampmsg[vampindex]; - ~~~~~~~^~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o steal.o steal.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o steed.o steed.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o teleport.o teleport.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o timeout.o timeout.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o rect.o rect.c potion.c: In function 'potionhit': potion.c:1354:41: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] Sprintf(saddle_glows, "%s %s", buf, aobjnam(saddle, "glow")); @@ -3783,7 +3747,78 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o topten.o topten.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o region.o region.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o restore.o restore.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o rip.o rip.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o rnd.o rnd.c +In file included from ../include/config.h:392, + from ../include/hack.h:10, + from rip.c:6: +rip.c:8:23: warning: 'center' declared 'static' but never defined [-Wunused-function] + STATIC_DCL void FDECL(center, (int, char *)); + ^~~~~~ +../include/tradstdc.h:193:21: note: in definition of macro 'FDECL' + #define FDECL(f, p) f p + ^ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o role.o role.c +restore.c: In function 'get_plname_from_file': +restore.c:1164:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] + (void) read(fd, (genericptr_t) &pltmpsiz, sizeof(pltmpsiz)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +restore.c:1165:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] + (void) read(fd, (genericptr_t) plbuf, pltmpsiz); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o rumors.o rumors.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o save.o save.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o shk.o shk.c +save.c: In function 'savestateinlock': +save.c:395:16: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] + (void) read(fd, (genericptr_t) &hpid, sizeof(hpid)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:412:16: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] + (void) write(fd, (genericptr_t) &hackpid, sizeof(hackpid)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +save.c:416:20: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] + (void) write(fd, (genericptr_t) &currlev, sizeof(currlev)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o shknam.o shknam.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o sit.o sit.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o sounds.o sounds.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o sp_lev.o sp_lev.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o spell.o spell.c +sounds.c: In function 'domonnoise': +sounds.c:620:40: warning: array subscript [0, 1] is outside array bounds of 'const char * const[2]' [-Warray-bounds] + verbl_msg = vampmsg[vampindex]; + ~~~~~~~^~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o sys.o sys.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o steal.o steal.c +options.c: In function 'doset': +options.c:4155:40: warning: 's [' directive writing 3 bytes into a region of size between 2 and 11 [-Wformat-overflow=] + Sprintf(fmtstr_doset, "%%s%%-%us [%%s]", longest_name_len); + ^~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from options.c:17: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 12 and 21 bytes into a destination of size 16 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +options.c:4288:40: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] + Sprintf(buf, "%s:%s", compopt[opt_indx].name, buf2); + ^ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from options.c:17: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ spell.c: In function 'getspell': spell.c:699:47: warning: '%s' directive writing up to 255 bytes into a region of size 109 [-Wformat-overflow=] Sprintf(qbuf, "Cast which spell? [%s *?]", lets); @@ -3798,6 +3833,10 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o steed.o steed.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o teleport.o teleport.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o timeout.o timeout.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o topten.o topten.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o track.o track.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o trap.o trap.c topten.c: In function 'outentry': @@ -3821,14 +3860,6 @@ ./makedefs -z make[3]: Leaving directory '/build/nethack-3.6.1/util' cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o weapon.o weapon.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o were.o were.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o wield.o wield.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o windows.o windows.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o wizard.o wizard.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o worm.o worm.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o worn.o worn.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o write.o write.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o zap.o zap.c uhitm.c: In function 'hmon_hitmon': uhitm.c:1232:47: warning: '%s' directive writing up to 255 bytes into a region of size between 244 and 251 [-Wformat-overflow=] Sprintf(silverobjbuf, "Your %s%s %s", @@ -3846,50 +3877,9 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/share/posixregex.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/share/ioctl.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/unix/unixmain.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/share/unixtty.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/unix/unixunix.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../win/lisp/winlisp.c -options.c: In function 'doset': -options.c:4155:40: warning: 's [' directive writing 3 bytes into a region of size between 2 and 11 [-Wformat-overflow=] - Sprintf(fmtstr_doset, "%%s%%-%us [%%s]", longest_name_len); - ^~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from options.c:17: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 12 and 21 bytes into a destination of size 16 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -options.c:4288:40: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] - Sprintf(buf, "%s:%s", compopt[opt_indx].name, buf2); - ^ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from options.c:17: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o vision.o vision.c -make[3]: Entering directory '/build/nethack-3.6.1/util' -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../win/share/tilemap.c -cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o vis_tab.o vis_tab.c -../sys/unix/unixmain.c: In function 'chdirx': -../sys/unix/unixmain.c:476:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] - (void) setgid(getgid()); - ^~~~~~~~~~~~~~~~ -../sys/unix/unixmain.c:477:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] - (void) setuid(getuid()); /* Ron Wessels */ - ^~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o were.o were.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o wield.o wield.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o windows.o windows.c weapon.c: In function 'enhance_weapon_skill': weapon.c:1115:47: warning: '%s' directive writing up to 255 bytes into a region of size between 249 and 253 [-Wformat-overflow=] Sprintf(buf, " %s%s\t[%s]", prefix, P_NAME(i), @@ -3959,6 +3949,24 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o wizard.o wizard.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o worm.o worm.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o worn.o worn.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o write.o write.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o zap.o zap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/share/posixregex.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/share/ioctl.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/unix/unixmain.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/share/unixtty.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../sys/unix/unixunix.c +../sys/unix/unixmain.c: In function 'chdirx': +../sys/unix/unixmain.c:476:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] + (void) setgid(getgid()); + ^~~~~~~~~~~~~~~~ +../sys/unix/unixmain.c:477:16: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] + (void) setuid(getuid()); /* Ron Wessels */ + ^~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../win/lisp/winlisp.c ../sys/unix/unixunix.c: In function 'child': ../sys/unix/unixunix.c:307:16: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] (void) setgid(getgid()); @@ -4029,6 +4037,10 @@ ../win/lisp/winlisp.c:44:12: warning: 'lisp_menu_list_size' defined but not used [-Wunused-variable] static int lisp_menu_list_size = 1000; ^~~~~~~~~~~~~~~~~~~ +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o vision.o vision.c +make[3]: Entering directory '/build/nethack-3.6.1/util' +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c ../win/share/tilemap.c +cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -I../include -Wall -DGCC_WARN -DNOTPARMDECL -DLISP_GRAPHICS -DDEFAULT_WINDOW_SYS=\"lisp\" -c -o vis_tab.o vis_tab.c cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -o tilemap tilemap.o ./tilemap make[3]: Leaving directory '/build/nethack-3.6.1/util' @@ -4063,6 +4075,23 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +trap.c: In function 'untrap': +trap.c:4324:57: warning: '%s' directive writing up to 255 bytes into a region of size 89 [-Wformat-overflow=] + qbuf, "There %s and %s here. %s %s?", + ^~ +trap.c:4327:68: + (ttmp->ttyp == WEB) ? "Remove" : "Disarm", the_trap); + ~~~~~~~~ +In file included from /usr/include/stdio.h:873, + from ../include/global.h:9, + from ../include/config.h:564, + from ../include/hack.h:10, + from trap.c:6: +/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 41 or more bytes (assuming 296) into a destination of size 128 + return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + __bos (__s), __fmt, __va_arg_pack ()); + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../win/lisp/winlisp.c: In function 'lisp_player_selection': ../win/lisp/winlisp.c:633:39: warning: '%s' directive writing up to 127 bytes into a region of size 107 [-Wformat-overflow=] Sprintf(pbuf, "Pick a role for your %s", plbuf); @@ -4116,23 +4145,6 @@ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -trap.c: In function 'untrap': -trap.c:4324:57: warning: '%s' directive writing up to 255 bytes into a region of size 89 [-Wformat-overflow=] - qbuf, "There %s and %s here. %s %s?", - ^~ -trap.c:4327:68: - (ttmp->ttyp == WEB) ? "Remove" : "Disarm", the_trap); - ~~~~~~~~ -In file included from /usr/include/stdio.h:873, - from ../include/global.h:9, - from ../include/config.h:564, - from ../include/hack.h:10, - from trap.c:6: -/usr/include/i386-linux-gnu/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output 41 or more bytes (assuming 296) into a destination of size 128 - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - __bos (__s), __fmt, __va_arg_pack ()); - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Linking nethack-lisp. cc -g -O2 -ffile-prefix-map=/build/nethack-3.6.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -o nethack-lisp monst.o objects.o allmain.o alloc.o apply.o artifact.o attrib.o ball.o bones.o botl.o cmd.o dbridge.o decl.o detect.o dig.o display.o dlb.o do.o do_name.o do_wear.o dog.o dogmove.o dokick.o dothrow.o drawing.o dungeon.o eat.o end.o engrave.o exper.o explode.o extralev.o files.o fountain.o hack.o hacklib.o invent.o light.o lock.o mail.o makemon.o mapglyph.o mcastu.o mhitm.o mhitu.o minion.o mklev.o mkmap.o mkmaze.o mkobj.o mkroom.o mon.o mondata.o monmove.o monstr.o mplayer.o mthrowu.o muse.o music.o o_init.o objnam.o options.o pager.o pickup.o pline.o polyself.o potion.o pray.o priest.o quest.o questpgr.o read.o rect.o region.o restore.o rip.o rnd.o role.o rumors.o save.o shk.o shknam.o sit.o sounds.o sp_lev.o spell.o sys.o steal.o steed.o teleport.o timeout.o topten.o track.o trap.o u_init.o uhitm.o vault.o vision.o vis_tab.o weapon.o were.o wield.o windows.o wizard.o worm.o worn.o write.o zap.o posixregex.o ioctl.o unixmain.o unixtty.o unixunix.o unixres.o winlisp.o tile.o version.o nethack-lisp is up to date. @@ -4390,24 +4402,26 @@ dh_builddeb dpkg-deb: building package 'nethack-common-dbgsym' in '../nethack-common-dbgsym_3.6.1-1_i386.deb'. dpkg-deb: building package 'nethack-console-dbgsym' in '../nethack-console-dbgsym_3.6.1-1_i386.deb'. -dpkg-deb: building package 'nethack-lisp' in '../nethack-lisp_3.6.1-1_i386.deb'. dpkg-deb: building package 'nethack-lisp-dbgsym' in '../nethack-lisp-dbgsym_3.6.1-1_i386.deb'. -dpkg-deb: building package 'nethack-console' in '../nethack-console_3.6.1-1_i386.deb'. dpkg-deb: building package 'nethack-x11-dbgsym' in '../nethack-x11-dbgsym_3.6.1-1_i386.deb'. -dpkg-deb: building package 'nethack-common' in '../nethack-common_3.6.1-1_i386.deb'. +dpkg-deb: building package 'nethack-lisp' in '../nethack-lisp_3.6.1-1_i386.deb'. +dpkg-deb: building package 'nethack-console' in '../nethack-console_3.6.1-1_i386.deb'. dpkg-deb: building package 'nethack-x11' in '../nethack-x11_3.6.1-1_i386.deb'. +dpkg-deb: building package 'nethack-common' in '../nethack-common_3.6.1-1_i386.deb'. dpkg-genbuildinfo --build=binary dpkg-genchanges --build=binary >../nethack_3.6.1-1_i386.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/30880/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/30880/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/37784 and its subdirectories -I: Current time: Wed May 26 18:17:29 -12 2021 -I: pbuilder-time-stamp: 1622096249 +I: removing directory /srv/workspace/pbuilder/30880 and its subdirectories +I: Current time: Fri Apr 24 14:01:46 +14 2020 +I: pbuilder-time-stamp: 1587686506