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:291:36: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'int' and 'unsigned int' # 291 | for (sum = 0, i = j; i < j + 8; i++) # | ~~^~~~~~~ # 289| j = (FC(row - top_margin, col - left_margin) != 1) * 4; # 290| unsigned count = 0; # 291|-> for (sum = 0, i = j; i < j + 8; i++) # 292| sum += p1rawc(row + dir[i][0], col + dir[i][1], count); # 293| if (count) Error: COMPILER_WARNING (CWE-195): [#def2] LibRaw-0.21.4/src/decoders/load_mfbacks.cpp:506:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'unsigned int' and 'int' # 506 | for (j = 0; j < head[i + 1] * head[i + 3]; j++) # | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 504| get2(); # 505| for (i = 0; i < 2; i++) # 506|-> for (j = 0; j < head[i + 1] * head[i + 3]; j++) # 507| yval[i][j] = getreal(LIBRAW_EXIFTAG_TYPE_FLOAT); # 508| for (i = 0; i < 2; i++) Error: COMPILER_WARNING (CWE-195): [#def3] LibRaw-0.21.4/src/decoders/load_mfbacks.cpp:509:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'unsigned int' and 'int' # 509 | for (j = 0; j < head[i + 1] * head[i + 3]; j++) # | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ # 507| yval[i][j] = getreal(LIBRAW_EXIFTAG_TYPE_FLOAT); # 508| for (i = 0; i < 2; i++) # 509|-> for (j = 0; j < head[i + 1] * head[i + 3]; j++) # 510| xval[i][j] = get2(); # 511| for (row = 0; row < raw_height; row++) Error: COMPILER_WARNING (CWE-195): [#def4] LibRaw-0.21.4/src/decoders/load_mfbacks.cpp:521:31: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'unsigned int' and 'int' # 521 | for (k = j = 0; j < head[1]; j++) # | ~~^~~~~~~~~ # 519| for (i = cip; i < cip + 2; i++) # 520| { # 521|-> for (k = j = 0; j < head[1]; j++) # 522| if (num < xval[0][k = head[1] * i + j]) # 523| break; Error: COMPILER_WARNING (CWE-195): [#def5] LibRaw-0.21.4/src/decoders/load_mfbacks.cpp:524:41: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'unsigned int' and '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): [#def6] 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:1059:34: warning[-Wsign-compare]: comparison of integer expressions of different signedness: 'unsigned int' and 'int' # 1059 | for (fj = fi; fj < (fi + 15); fj += 3) // looking for the end of the WB table # | ~~~^~~~~~~~~~~ # 1057| fi += 24; # 1058| fi += 96; # 1059|-> for (fj = fi; fj < (fi + 15); fj += 3) // looking for the end of the WB table # 1060| { # 1061| if (fj > libraw_internal_data.unpacker_data.lenRAFData - 3)
| analyzer-version-clippy | 1.86.0 |
| analyzer-version-cppcheck | 2.17.1 |
| analyzer-version-gcc | 15.1.1 |
| analyzer-version-gcc-analyzer | 15.1.1 |
| analyzer-version-shellcheck | 0.10.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.86.0 |
| diffbase-analyzer-version-cppcheck | 2.17.1 |
| diffbase-analyzer-version-gcc | 15.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 15.1.1 |
| 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-30.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | LibRaw-0.21.4-1.fc43 |
| diffbase-store-results-to | /tmp/tmpd8rh_4lx/LibRaw-0.21.4-1.fc43.tar.xz |
| diffbase-time-created | 2025-05-25 14:43:19 |
| diffbase-time-finished | 2025-05-25 14:47:47 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmpd8rh_4lx/LibRaw-0.21.4-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpd8rh_4lx/LibRaw-0.21.4-1.fc43.src.rpm' |
| diffbase-tool-version | csmock-3.8.1.20250522.152949.gcbefee4-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-30.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | LibRaw-0.21.4-2.fc43 |
| store-results-to | /tmp/tmp2t4y57rx/LibRaw-0.21.4-2.fc43.tar.xz |
| time-created | 2025-05-25 14:48:07 |
| time-finished | 2025-05-25 14:52:06 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,shellcheck,gcc,cppcheck,unicontrol' '-o' '/tmp/tmp2t4y57rx/LibRaw-0.21.4-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp2t4y57rx/LibRaw-0.21.4-2.fc43.src.rpm' |
| tool-version | csmock-3.8.1.20250522.152949.gcbefee4-1.el9 |