Fixed findings

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
ghostscript-10.03.1-build/ghostscript-10.03.1/base/gxblend1.c:871: error[uninitvar]: Uninitialized variable: bebg
#  869|               if (a == 0) {
#  870|                   for (comp_num = 0; comp_num < num_comp; comp_num++) {
#  871|->                     buf_ptr[position + planestride * (size_t)comp_num] = bebg;
#  872|                   }
#  873|               } else if (a == 0xffff) {

Error: CPPCHECK_WARNING (CWE-457): [#def2]
ghostscript-10.03.1-build/ghostscript-10.03.1/contrib/japanese/gdevlbp3.c:271: warning[uninitvar]: Uninitialized variable: oBuf
#  269|           } else {
#  270|                   gp_fprintf(fp, "%c", count);
#  271|->                 gp_fwrite(oBuf, 1, count+1, fp);
#  272|                   DataSize += (count+2);
#  273|           }

Error: CPPCHECK_WARNING (CWE-758): [#def3]
ghostscript-10.03.1-build/ghostscript-10.03.1/pdf/pdf_int.c:239: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  237|       pdf_num *num;
#  238|       int code = 0, malformed = false, doubleneg = false, recovered = false, negative = false, overflowed = false;
#  239|->     int int_val = 0, tenth_max_int = max_int / 10, tenth_max_uint = max_uint / 10;
#  240|   
#  241|       pdfi_skip_white(ctx, s);

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-148.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-nameghostscript-10.04.0-1.fc42
diffbase-store-results-to/tmp/tmpuxbxhhnk/ghostscript-10.04.0-1.fc42.tar.xz
diffbase-time-created2024-11-13 00:03:29
diffbase-time-finished2024-11-13 00:13:02
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpuxbxhhnk/ghostscript-10.04.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpuxbxhhnk/ghostscript-10.04.0-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-148.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameghostscript-10.03.1-3.fc41
store-results-to/tmp/tmpftp498j2/ghostscript-10.03.1-3.fc41.tar.xz
time-created2024-11-12 23:53:13
time-finished2024-11-13 00:03:05
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpftp498j2/ghostscript-10.03.1-3.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpftp498j2/ghostscript-10.03.1-3.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9