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!) */
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
diffbase-analyzer-version-clippy | 1.82.0 |
diffbase-analyzer-version-cppcheck | 2.16.0 |
diffbase-analyzer-version-gcc | 14.2.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.0 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-unicontrol | 0.0.2 |
diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-244.us-west-2.compute.internal |
diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
diffbase-project-name | libpng-1.6.44-1.fc42 |
diffbase-store-results-to | /tmp/tmp556l5yif/libpng-1.6.44-1.fc42.tar.xz |
diffbase-time-created | 2024-11-13 01:43:52 |
diffbase-time-finished | 2024-11-13 01:45:53 |
diffbase-tool | csmock |
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-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-244.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libpng-1.6.40-4.fc41 |
store-results-to | /tmp/tmppefrzeie/libpng-1.6.40-4.fc41.tar.xz |
time-created | 2024-11-13 01:41:07 |
time-finished | 2024-11-13 01:43:31 |
title | Fixed findings |
tool | csmock |
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-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |