Error: CPPCHECK_WARNING (CWE-476): [#def1] criu-4.1/compel/src/lib/infect.c:430: error[nullPointer]: Null pointer dereference: (struct sockaddr_un*)0 # 428| # 429| saddr->sun_family = AF_UNIX; # 430|-> snprintf(saddr->sun_path, UNIX_PATH_MAX, "X/crtools-pr-%d-%s", key, compel_run_id); # 431| # 432| sun_len = SUN_LEN(saddr); Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] criu-4.1/criu/parasite-syscall.c:112:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ criu-4.1/criu/parasite-syscall.c:108:9: branch_false: following ‘false’ branch... criu-4.1/criu/parasite-syscall.c:109:9: branch_false: ...to here criu-4.1/criu/parasite-syscall.c:109:9: branch_false: following ‘false’ branch... criu-4.1/criu/parasite-syscall.c:110:9: branch_false: ...to here criu-4.1/criu/parasite-syscall.c:110:9: branch_false: following ‘false’ branch... criu-4.1/criu/parasite-syscall.c:111:9: branch_false: ...to here criu-4.1/criu/parasite-syscall.c:111:9: branch_false: following ‘false’ branch... criu-4.1/criu/parasite-syscall.c:112:9: branch_false: ...to here criu-4.1/criu/parasite-syscall.c:112:9: branch_true: following ‘true’ branch... criu-4.1/criu/parasite-syscall.c:112:9: branch_true: ...to here criu-4.1/criu/parasite-syscall.c:112:9: danger: dereference of NULL ‘0’ # 110| BUG_ON(ce->n_cap_eff != CR_CAP_SIZE); # 111| BUG_ON(ce->n_cap_bnd != CR_CAP_SIZE); # 112|-> BUG_ON(ce->n_cap_amb != CR_CAP_SIZE); # 113| # 114| memcpy(ce->cap_inh, c->cap_inh, sizeof(c->cap_inh[0]) * CR_CAP_SIZE); Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] criu-4.1/criu/pidfd.c:205:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ criu-4.1/criu/pidfd.c:187:12: enter_function: entry to ‘open_one_pidfd’ criu-4.1/criu/pidfd.c:195:12: branch_false: following ‘false’ branch... criu-4.1/criu/pidfd.c:204:34: branch_false: ...to here criu-4.1/criu/pidfd.c:204:16: call_function: calling ‘lookup_dead_pidfd’ from ‘open_one_pidfd’ criu-4.1/criu/pidfd.c:204:16: return_function: returning to ‘open_one_pidfd’ from ‘lookup_dead_pidfd’ criu-4.1/criu/pidfd.c:205:9: branch_true: following ‘true’ branch... criu-4.1/criu/pidfd.c:205:9: branch_true: ...to here criu-4.1/criu/pidfd.c:205:9: danger: dereference of NULL ‘0’ # 203| # 204| dead = lookup_dead_pidfd(info->pidfe->ino); # 205|-> BUG_ON(!dead); # 206| # 207| if (info->dead && info->dead->creator_id != info->pidfe->id) {
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-130.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 | criu-4.0-4.fc42 |
diffbase-store-results-to | /tmp/tmp19g18fzn/criu-4.0-4.fc42.tar.xz |
diffbase-time-created | 2025-04-25 12:11:50 |
diffbase-time-finished | 2025-04-25 12:16:09 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp19g18fzn/criu-4.0-4.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp19g18fzn/criu-4.0-4.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-130.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 | criu-4.1-2.fc43 |
store-results-to | /tmp/tmppp40n6fu/criu-4.1-2.fc43.tar.xz |
time-created | 2025-04-25 12:16:40 |
time-finished | 2025-04-25 12:20:33 |
title | Newly introduced findings |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmppp40n6fu/criu-4.1-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmppp40n6fu/criu-4.1-2.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |