Error: COMPILER_WARNING (CWE-704): [#def1] passt-386b5f5472b89769c025f5d5056348532a823b93/conf.c: scope_hint: In function ‘next_chunk’ passt-386b5f5472b89769c025f5d5056348532a823b93/conf.c:78:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 78 | char *sep = strchr(s, c); # | ^~~~~~ # 76| static char *next_chunk(const char *s, char c) # 77| { # 78|-> char *sep = strchr(s, c); # 79| return sep ? sep + 1 : NULL; # 80| } Error: COMPILER_WARNING (CWE-704): [#def2] passt-386b5f5472b89769c025f5d5056348532a823b93/conf.c: scope_hint: In function ‘conf_runas’ passt-386b5f5472b89769c025f5d5056348532a823b93/conf.c:1251:21: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type # 1251 | char *sep = strchr(opt, ':'); # | ^~~~~~ # 1249| { # 1250| const char *uopt, *gopt = NULL; # 1251|-> char *sep = strchr(opt, ':'); # 1252| char *endptr; # 1253| Error: GCC_ANALYZER_WARNING (CWE-775): [#def3] passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:402:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(s, (int)fd)’ passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:141:5: enter_function: entry to ‘main’ passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:207:25: call_function: inlined call to ‘strncpy’ from ‘main’ passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:210:32: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)... passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:211:33: branch_true: ...to here passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:323:21: branch_true: following ‘true’ branch (when ‘i != 100’)... passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:323:21: branch_true: ...to here passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:328:20: branch_false: following ‘false’ branch (when ‘s >= 0’)... passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:333:21: branch_false: ...to here passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:345:27: branch_false: following ‘false’ branch... passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:348:28: call_function: inlined call to ‘recv’ from ‘main’ passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:348:27: branch_false: following ‘false’ branch... passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:389:12: branch_false: ...to here passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:389:12: branch_false: following ‘false’ branch (when ‘i != 100’)... passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:394:9: branch_false: ...to here passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:402:13: acquire_resource: opened here passt-386b5f5472b89769c025f5d5056348532a823b93/qrap.c:402:12: danger: ‘dup2(s, (int)fd)’ leaks here; was opened at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18) # 400| fprintf(stderr, "Connected to %s\n", addr.sun_path); # 401| # 402|-> if (dup2(s, (int)fd) < 0) { # 403| perror("dup"); # 404| exit(EXIT_FAILURE);
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.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-132.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | passt-0^20260728.gf8df3f1-2.fc45 |
| diffbase-store-results-to | /tmp/tmpqiiaq3q1/passt-0^20260728.gf8df3f1-2.fc45.tar.xz |
| diffbase-time-created | 2026-08-03 19:03:21 |
| diffbase-time-finished | 2026-08-03 19:04:53 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpqiiaq3q1/passt-0^20260728.gf8df3f1-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqiiaq3q1/passt-0^20260728.gf8df3f1-2.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-132.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | passt-0^20260120.g386b5f5-1.fc44 |
| store-results-to | /tmp/tmpf62f0r3x/passt-0^20260120.g386b5f5-1.fc44.tar.xz |
| time-created | 2026-08-03 19:00:38 |
| time-finished | 2026-08-03 19:03:15 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpf62f0r3x/passt-0^20260120.g386b5f5-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpf62f0r3x/passt-0^20260120.g386b5f5-1.fc44.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |