[Deborphan-devel] Bug#783871: deborphan: cppcheck found the following issues with deborphan.c

shirish शिरीष shirishag75 at gmail.com
Thu Apr 30 19:56:25 UTC 2015


Package: deborphan
Version: 1.7.28.8-0.1
Severity: wishlist

Dear Maintainer,
Cppcheck found the following style, performance and portability issues
with deborphan.c . Please fix whichever are at fault :-

[$] cppcheck  --enable=all deborphan.c
Checking deborphan.c...
[deborphan.c:74]: (style) The scope of the variable 'j' can be reduced.
[deborphan.c:215]: (portability) scanf without field width limits can
crash with huge input data on some versions of libc.
Checking deborphan.c: ALL_PACKAGES_IMPLY_SECTION...
Checking deborphan.c: DEBFOSTER_KEEP...
[deborphan.c:1]: (information) Skipping configuration 'DEBFOSTER_KEEP'
since the value of 'DEBFOSTER_KEEP' is unknown. Use -D if you want to
check it. You can use -U to skip it explicitly.
Checking deborphan.c: DEBUG...
[deborphan.c:368]: (warning) %d in format string (no. 1) requires
'int' but the argument type is 'size_t {aka unsigned long}'.
Checking deborphan.c: DEFAULT_NICE...
Checking deborphan.c: ENABLE_NLS...
Checking deborphan.c: HAVE_CONFIG_H...
Checking deborphan.c: HAVE_ERRNO_H...
Checking deborphan.c: HAVE_GETOPT_H...
Checking deborphan.c: IGNORE_DEBFOSTER...
Checking deborphan.c: LOW_MEM...
Checking deborphan.c: USE_XALLOC...
(information) Cppcheck cannot find all the include files (use
--check-config for details)

Look forward for any fixes which are generated from the report.

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'stable-updates'), (500,
'stable'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages deborphan depends on:
ii  libc6  2.19-18

Versions of packages deborphan recommends:
ii  apt           1.1~exp8
ii  dialog        1.2-20140911-1
ii  gettext-base  0.19.3-2

deborphan suggests no packages.

-- no debconf information

-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A  2C2F 9F3D C7A4 E1C4 D2D8



More information about the Deborphan-devel mailing list