Newly introduced findings

List of Findings

Error: COMPILER_WARNING (CWE-195): [#def1]
LibRaw-0.21.4/src/decoders/load_mfbacks.cpp: scope_hint: In member function 'int LibRaw::phase_one_correct()'
LibRaw-0.21.4/src/decoders/load_mfbacks.cpp:524:66: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'int' and 'unsigned int'
#  524 |                         if (j == 0 || j == head[1] || k < 1 || k >= w0+w1)
#      |                                                                ~~^~~~~~~~
#  522|                 if (num < xval[0][k = head[1] * i + j])
#  523|                   break;
#  524|-> 			if (j == 0 || j == head[1] || k < 1 || k >= w0+w1)
#  525|   				frac = 0;
#  526|   			else

Error: COMPILER_WARNING (CWE-195): [#def2]
LibRaw-0.21.4/src/decoders/load_mfbacks.cpp:531:31: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'int' and 'unsigned int'
#  531 |                         if (k < w0 + w1)
#      |                             ~~^~~~~~~~~
#  529|   				frac = xdiv ? (xval[0][k] - num) / (xval[0][k] - xval[0][k - 1]) : 0;
#  530|   			}
#  531|-> 			if (k < w0 + w1)
#  532|   				mult[i - cip] = yval[0][k > 0 ? k - 1 : 0] * frac + yval[0][k] * (1 - frac);
#  533|   			else

Error: COMPILER_WARNING (CWE-195): [#def3]
LibRaw-0.21.4/src/metadata/tiff.cpp: scope_hint: In member function 'int LibRaw::parse_tiff_ifd(int)'
LibRaw-0.21.4/src/metadata/tiff.cpp:1060:48: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'int' and 'unsigned int'
# 1060 |                                         if (fj > libraw_internal_data.unpacker_data.lenRAFData - 3)
#      |                                             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1058|                   for (fj = fi; fj < (fi + 15); fj += 3) // looking for the end of the WB table
# 1059|                   {
# 1060|-> 					if (fj > libraw_internal_data.unpacker_data.lenRAFData - 3)
# 1061|   						break;
# 1062|                     if (rafdata[fj] != rafdata[fi])

Error: COMPILER_WARNING (CWE-195): [#def4]
LibRaw-0.21.4/src/metadata/tiff.cpp:1069:57: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'int' and 'unsigned int'
# 1069 |                                                 && ofst < libraw_internal_data.unpacker_data.lenRAFData - 3;
#      |                                                    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1067|   //printf ("wb start in DNG: 0x%04x\n", fj*2-0x4e);
# 1068|                       for (int iCCT = 0, ofst = fj; iCCT < 31 
# 1069|-> 						&& ofst < libraw_internal_data.unpacker_data.lenRAFData - 3;
# 1070|                            iCCT++, ofst += 3)
# 1071|                       {

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
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-252.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameLibRaw-0.21.3-2.fc42
diffbase-store-results-to/tmp/tmp_mxrr4rh/LibRaw-0.21.3-2.fc42.tar.xz
diffbase-time-created2025-04-25 11:57:12
diffbase-time-finished2025-04-25 12:01:42
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp_mxrr4rh/LibRaw-0.21.3-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_mxrr4rh/LibRaw-0.21.3-2.fc42.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-252.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameLibRaw-0.21.4-1.fc43
store-results-to/tmp/tmpm9gajarl/LibRaw-0.21.4-1.fc43.tar.xz
time-created2025-04-25 12:02:01
time-finished2025-04-25 12:06:02
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpm9gajarl/LibRaw-0.21.4-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpm9gajarl/LibRaw-0.21.4-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9