Error: GCC_ANALYZER_WARNING (CWE-775): [#def1] v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1161:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’ v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1133:12: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1139:13: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1144:12: branch_true: following ‘true’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: acquire_resource: opened here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1146:20: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:15: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: following ‘true’ branch (when ‘keep_reading != 0’)... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1244:12: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1135:24: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1161:25: danger: ‘out’ leaks here; was opened at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4) # 1159| if (ret < 0) { # 1160| fprintf(stderr, _("%s: failed read: %m\n"), dev); # 1161|-> goto err; # 1162| } # 1163| Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1161:25: warning[-Wanalyzer-malloc-leak]: leak of ‘out’ v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1133:12: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1139:13: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1144:12: branch_true: following ‘true’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: acquire_memory: allocated here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1146:20: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:15: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: following ‘true’ branch (when ‘keep_reading != 0’)... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1244:12: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1135:24: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1161:25: danger: ‘out’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4) # 1159| if (ret < 0) { # 1160| fprintf(stderr, _("%s: failed read: %m\n"), dev); # 1161|-> goto err; # 1162| } # 1163| Error: GCC_ANALYZER_WARNING (CWE-775): [#def3] v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘out’ v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1133:12: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1139:13: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1144:12: branch_true: following ‘true’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: acquire_resource: opened here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1146:20: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:15: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: following ‘true’ branch (when ‘keep_reading != 0’)... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1159:20: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1164:20: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1164:20: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1170:31: branch_true: following ‘true’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1171:40: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: throw: if ‘fflush’ throws an exception... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: danger: ‘out’ leaks here; was opened at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4) # 1236| } # 1237| # 1238|-> fflush(out); # 1239| } # 1240| } Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: warning[-Wanalyzer-malloc-leak]: leak of ‘out’ v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1133:12: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1139:13: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1144:12: branch_true: following ‘true’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1145:23: acquire_memory: allocated here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1146:20: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:15: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: following ‘true’ branch (when ‘keep_reading != 0’)... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1157:16: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1159:20: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1164:20: branch_false: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1164:20: branch_false: following ‘false’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1170:31: branch_true: following ‘true’ branch... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1171:40: branch_true: ...to here v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: throw: if ‘fflush’ throws an exception... v4l-utils-1.30.1/utils/ir-ctl/ir-ctl.c:1238:25: danger: ‘out’ leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4) # 1236| } # 1237| # 1238|-> fflush(out); # 1239| } # 1240| }
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| 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-24.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 | v4l-utils-1.32.0-1.fc44 |
| diffbase-store-results-to | /tmp/tmp1dsfxqxe/v4l-utils-1.32.0-1.fc44.tar.xz |
| diffbase-time-created | 2026-01-08 21:59:37 |
| diffbase-time-finished | 2026-01-08 22:02:58 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp1dsfxqxe/v4l-utils-1.32.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1dsfxqxe/v4l-utils-1.32.0-1.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-24.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 | v4l-utils-1.30.1-4.fc43 |
| store-results-to | /tmp/tmp3mjjs7z1/v4l-utils-1.30.1-4.fc43.tar.xz |
| time-created | 2026-01-08 21:55:10 |
| time-finished | 2026-01-08 21:59:02 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp3mjjs7z1/v4l-utils-1.30.1-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp3mjjs7z1/v4l-utils-1.30.1-4.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |