Error: GCC_ANALYZER_WARNING: [#def1] libsolv-0.7.32/ext/repo_apk.c:262:13: warning[-Wanalyzer-fd-use-without-check]: ‘read’ on possibly invalid file descriptor ‘fd’ libsolv-0.7.32/ext/repo_apk.c:686:1: enter_function: entry to ‘repo_add_apk_repo’ libsolv-0.7.32/ext/repo_apk.c:698:6: branch_false: following ‘false’ branch... libsolv-0.7.32/ext/repo_apk.c:700:3: branch_false: ...to here libsolv-0.7.32/ext/repo_apk.c:702:6: branch_true: following ‘true’ branch... libsolv-0.7.32/ext/repo_apk.c:704:10: branch_true: ...to here libsolv-0.7.32/ext/repo_apk.c:704:9: branch_false: following ‘false’ branch... libsolv-0.7.32/ext/repo_apk.c:706:10: branch_false: ...to here libsolv-0.7.32/ext/repo_apk.c:706:9: branch_true: following ‘true’ branch... libsolv-0.7.32/ext/repo_apk.c:707:15: call_function: calling ‘add_apkv3_idx’ from ‘repo_add_apk_repo’ # 260| r = fread(comp, 2, 1, fp) == 1 ? 2 : feof(fp) ? 0 : -1; # 261| else # 262|-> r = read(fd, comp, 2); # 263| if (r != 2) # 264| return open_apkv3_error(pool, fd, fn, "compression header read error"); Error: GCC_ANALYZER_WARNING (CWE-688): [#def2] libsolv-0.7.32/ext/repo_apk.c:293:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘cfp’ where non-null expected libsolv-0.7.32/ext/repo_apk.c:686:1: enter_function: entry to ‘repo_add_apk_repo’ libsolv-0.7.32/ext/repo_apk.c:698:6: branch_false: following ‘false’ branch... libsolv-0.7.32/ext/repo_apk.c:700:3: branch_false: ...to here libsolv-0.7.32/ext/repo_apk.c:702:6: branch_true: following ‘true’ branch... libsolv-0.7.32/ext/repo_apk.c:704:10: branch_true: ...to here libsolv-0.7.32/ext/repo_apk.c:704:9: branch_false: following ‘false’ branch... libsolv-0.7.32/ext/repo_apk.c:706:10: branch_false: ...to here libsolv-0.7.32/ext/repo_apk.c:706:9: branch_true: following ‘true’ branch... libsolv-0.7.32/ext/repo_apk.c:707:15: call_function: calling ‘add_apkv3_idx’ from ‘repo_add_apk_repo’ # 291| if (adbchar != '.') # 292| { # 293|-> if (fread(buf, 4, 1, cfp) != 1 || buf[0] != 'A' || buf[1] != 'D' || buf[2] != 'B' || buf[3] != '.') # 294| { # 295| pool_error(pool, -1, "%s: not an apkv3 file", fn); Error: CPPCHECK_WARNING (CWE-758): [#def3] libsolv-0.7.32/src/repodata.c:2201: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 2199| di->solvid = solvid; # 2200| if (solvid) # 2201|-> di->flags |= SEARCH_THISSOLVID; # 2202| di->state = di_enterrepo; # 2203| }
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.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.0.1 |
diffbase-analyzer-version-gcc-analyzer | 15.0.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-158.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.20250425.124705.g1c7c448.main-1.el9.noarch |
diffbase-mock-config | fedora-rawhide-x86_64 |
diffbase-project-name | libsolv-0.7.31-5.fc42 |
diffbase-store-results-to | /tmp/tmpvk6hqgfo/libsolv-0.7.31-5.fc42.tar.xz |
diffbase-time-created | 2025-04-25 14:11:51 |
diffbase-time-finished | 2025-04-25 14:14:49 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpvk6hqgfo/libsolv-0.7.31-5.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpvk6hqgfo/libsolv-0.7.31-5.fc42.src.rpm' |
diffbase-tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-158.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | libsolv-0.7.32-4.fc43 |
store-results-to | /tmp/tmpdv7yfua8/libsolv-0.7.32-4.fc43.tar.xz |
time-created | 2025-04-25 14:15:17 |
time-finished | 2025-04-25 14:17:47 |
title | Newly introduced findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpdv7yfua8/libsolv-0.7.32-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpdv7yfua8/libsolv-0.7.32-4.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |