Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-457): [#def1]
libpng-1.6.40-build/libpng-1.6.40/pngerror.c:19: included_from: Included from here.
libpng-1.6.40-build/libpng-1.6.40/pngerror.c: scope_hint: In function 'png_warning_parameter_unsigned'
libpng-1.6.40-build/libpng-1.6.40/pngpriv.h:1740:4: warning[-Wmaybe-uninitialized]: 'buffer' may be used uninitialized
# 1740 |    png_format_number(buffer, buffer + (sizeof buffer), format, number)
#      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libpng-1.6.40-build/libpng-1.6.40/pngerror.c:133:1: note: by argument 1 of type 'const char *' to 'png_format_number' declared here
#  133 | png_format_number(png_const_charp start, png_charp end, int format,
#      | ^~~~~~~~~~~~~~~~~
libpng-1.6.40-build/libpng-1.6.40/pngerror.c:258:9: note: 'buffer' declared here
#  258 |    char buffer[PNG_NUMBER_BUFFER_SIZE];
#      |         ^~~~~~
# 1738|   /* Convenience macro that takes an array: */
# 1739|   #define PNG_FORMAT_NUMBER(buffer,format,number) \
# 1740|->    png_format_number(buffer, buffer + (sizeof buffer), format, number)
# 1741|   
# 1742|   /* Suggested size for a number buffer (enough for 64 bits and a sign!) */

Error: COMPILER_WARNING (CWE-457): [#def2]
libpng-1.6.40-build/libpng-1.6.40/png.c: scope_hint: In function 'png_convert_to_rfc1123_buffer'
libpng-1.6.40-build/libpng-1.6.40/pngpriv.h:1740:4: warning[-Wmaybe-uninitialized]: 'number_buf' may be used uninitialized
# 1740 |    png_format_number(buffer, buffer + (sizeof buffer), format, number)
libpng-1.6.40-build/libpng-1.6.40/png.h:335: included_from: Included from here.
libpng-1.6.40-build/libpng-1.6.40/pngpriv.h:392: included_from: Included from here.
libpng-1.6.40-build/libpng-1.6.40/png.c:14: included_from: Included from here.
libpng-1.6.40-build/libpng-1.6.40/pngpriv.h:1735:33: note: by argument 1 of type 'const char *' to 'png_format_number' declared here
# 1735 | PNG_INTERNAL_FUNCTION(png_charp,png_format_number,(png_const_charp start,
#      |                                 ^~~~~~~~~~~~~~~~~
libpng-1.6.40-build/libpng-1.6.40/png.c:755:12: note: 'number_buf' declared here
#  755 |       char number_buf[5]; /* enough for a four-digit year */
#      |            ^~~~~~~~~~
# 1738|   /* Convenience macro that takes an array: */
# 1739|   #define PNG_FORMAT_NUMBER(buffer,format,number) \
# 1740|->    png_format_number(buffer, buffer + (sizeof buffer), format, number)
# 1741|   
# 1742|   /* Suggested size for a number buffer (enough for 64 bits and a sign!) */

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-244.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namelibpng-1.6.44-1.fc42
diffbase-store-results-to/tmp/tmp556l5yif/libpng-1.6.44-1.fc42.tar.xz
diffbase-time-created2024-11-13 01:43:52
diffbase-time-finished2024-11-13 01:45:53
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp556l5yif/libpng-1.6.44-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp556l5yif/libpng-1.6.44-1.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-244.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibpng-1.6.40-4.fc41
store-results-to/tmp/tmppefrzeie/libpng-1.6.40-4.fc41.tar.xz
time-created2024-11-13 01:41:07
time-finished2024-11-13 01:43:31
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmppefrzeie/libpng-1.6.40-4.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmppefrzeie/libpng-1.6.40-4.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9