[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#995624: marked as done (pktstat FTBFS: error: format not a string literal and no format arguments [-Werror=format-security])



Your message dated Sun, 09 Oct 2022 11:04:49 +0000
with message-id <E1ohU6z-005HkY-PK@fasolo.debian.org>
and subject line Bug#995624: fixed in pktstat 1.8.5-8
has caused the Debian Bug report #995624,
regarding pktstat FTBFS: error: format not a string literal and no format arguments [-Werror=format-security]
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
995624: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995624
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: pktstat
Version: 1.8.5-7
Severity: serious
Tags: ftbfs

pktstat fails to build from source in unstable on amd64. A non-parallel
build ends as follows:

| gcc -DHAVE_CONFIG_H -I.  -DPATH_PKTSTATRC=\"/etc/pktstatrc\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -D_BSD_SOURCE -c -o display.o display.c
| In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
|                  from /usr/include/stdio.h:27,
|                  from display.c:17:
| /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
|   187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
|       |   ^~~~~~~
| display.c: In function ‘display_update’:
| display.c:499:33: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
|   499 |  attron(A_UNDERLINE); printw("%-*s",
|       |                               ~~^~
|       |                                 |
|       |                                 int
| display.c:552:13: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
|   552 |   printw("%.*s\n", MIN(maxx - LLEN, sizeof flows[i].tag - 1),
|       |           ~~^~
|       |             |
|       |             int
| display.c:566:15: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
|   566 |    printw(" %.*s\n", MIN(maxx - LLEN - 2,
|       |             ~~^~
|       |               |
|       |               int
| display.c:285:21: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
|   285 |  int maxx, maxy, y, x;
|       |                     ^
| display.c: In function ‘printhelp’:
| display.c:672:3: error: format not a string literal and no format arguments [-Werror=format-security]
|   672 |   printw((char *)h->name + 1);
|       |   ^~~~~~
| cc1: some warnings being treated as errors
| make[2]: *** [Makefile:483: display.o] Error 1
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| make[1]: *** [Makefile:339: all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_build: error: make -j1 returned exit code 2
| make: *** [debian/rules:11: build] Error 25
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

This is likely due to ncurses including format string annotations.

Helmut

--- End Message ---
--- Begin Message ---
Source: pktstat
Source-Version: 1.8.5-8
Done: Adam Borowski <kilobyte@angband.pl>

We believe that the bug you reported is fixed in the latest version of
pktstat, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 995624@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Borowski <kilobyte@angband.pl> (supplier of updated pktstat package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 09 Oct 2022 12:39:23 +0200
Source: pktstat
Architecture: source
Version: 1.8.5-8
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Adam Borowski <kilobyte@angband.pl>
Closes: 995624
Changes:
 pktstat (1.8.5-8) unstable; urgency=medium
 .
   * QA upload.
   * Fix FTBFS due to format string (closes: #995624)
   * dh 13.
   * Change pointless R³:binary-targets to no.
Checksums-Sha1:
 bbef2571978470a53817cc6ab9540060810772b0 1851 pktstat_1.8.5-8.dsc
 cb5399a493b18730fe40607fc6fb96fd6c13d84f 4728 pktstat_1.8.5-8.debian.tar.xz
 b3de2dbc440b1a3e98be028e5a2753ffe77f7754 5865 pktstat_1.8.5-8_source.buildinfo
Checksums-Sha256:
 1060a7dda162bbde3861b96802891f36bc44f7828baff92248a4aa59aaafcbbe 1851 pktstat_1.8.5-8.dsc
 6861dd3f9887c5d47f0b8745e89ab3a82661e960754b324ec0ed99d587355afb 4728 pktstat_1.8.5-8.debian.tar.xz
 7e9fed7e691ede075f56d20124b242f5a7b2a802c6c8c0296f70e51ab137c283 5865 pktstat_1.8.5-8_source.buildinfo
Files:
 ed982d21c8395a458aafe75ab7f4db0f 1851 net optional pktstat_1.8.5-8.dsc
 453cdb2cf8a5c37aa2a06955a0e28d70 4728 net optional pktstat_1.8.5-8.debian.tar.xz
 4b68e25ee2a72a32630f9d3c170fc074 5865 net optional pktstat_1.8.5-8_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEkjZVexcMh/iCHArDweDZLphvfH4FAmNCqAMACgkQweDZLphv
fH5kSxAAoT3qaKKwcUq4uvUYYJybF0Pw3D29xbJRsMM3ULRh4xawell5VqssHvrg
Ko/TVVwj5XLZJjharYYXNW7XjwxDYpnEL5zQEyI5k3m6sEVi2kIqWFFxSNvA32Rz
2bhfM4aMXrqi5gs7Yjl90PL2YYhcXAxBiGwdTEX+NhMOncT3LyWIfJub6mgdjVGU
rOjo+CiPv6AiGD/J5C+s1l7Br0TfdbBvoyYbnZHcjx6j0Kem5zcIscLlzZ3a/9+F
2W/1kUUkrKy9Fypd+Ztd2gxw8ucxeoEa6+D2zpzmwnNPW/xcPQYM8jQgHFLk1ky5
40oDSTKuW/gpDSHVqSIX56gGyhTWLsqrWqdU25magWRforlNLa1VIlaKzlDqm90q
Ps4us21/MCWAra4HQrQu/6qxY9aR0X18nUCOP3H0O6ejqrK+ZocaeylGOnWh6hcW
KTZdqtSB2ufi8XgxKDim3D6/FlILVKnAcwtFFrSKQugBlKYerd0m9F3OsuYVId+I
LZ1LaUXL2OTuMss12Y+qwQbtqNAGrdasRkg5LMu/+2gNu6NZXH4DFQ83u/59ngHa
3KEV+sI8KFbbh1OVpvNCB5Kv4+YTNiRGRo6vQkHQ38lXdu7YJCKHQw/OvVb8nkZv
KIGI35Iqpq/yS9fI6Bwlk5dxHp9oTB7Zt6UYaWb+VvA+P7g6Cn4=
=8K5h
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: