Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
clinfo-3.0.23.01.25/src/clinfo.c:4655:15: warning[-Wanalyzer-malloc-leak]: leak of ‘output.prop’
clinfo-3.0.23.01.25/src/clinfo.c:4583:5: enter_function: entry to ‘main’
clinfo-3.0.23.01.25/src/clinfo.c:4606:12: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4606:12: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4610:16: branch_true: following ‘true’ branch (when ‘a < argc’)...
clinfo-3.0.23.01.25/src/clinfo.c:4611:33: branch_true: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4613:25: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4615:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4617:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4617:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4619:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4619:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4621:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4621:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4623:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4623:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4625:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4625:25: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4627:25: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4630:27: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4632:29: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4632:27: branch_true: following ‘true’ branch (when the strings are equal)...
clinfo-3.0.23.01.25/src/clinfo.c:4633:25: branch_true: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4634:25: call_function: calling ‘parse_prop’ from ‘main’
clinfo-3.0.23.01.25/src/clinfo.c:4634:25: return_function: returning to ‘main’ from ‘parse_prop’
clinfo-3.0.23.01.25/src/clinfo.c:4610:16: branch_false: following ‘false’ branch (when ‘a >= argc’)...
clinfo-3.0.23.01.25/src/clinfo.c:4650:13: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4650:12: branch_true: following ‘true’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4651:17: branch_true: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4653:27: branch_true: following ‘true’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4653:27: branch_false: following ‘false’ branch...
clinfo-3.0.23.01.25/src/clinfo.c:4653:27: branch_false: ...to here
clinfo-3.0.23.01.25/src/clinfo.c:4655:15: throw: if ‘clGetPlatformIDs’ throws an exception...
clinfo-3.0.23.01.25/src/clinfo.c:4655:15: danger: ‘output.prop’ leaks here; was allocated at [(29)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/28)
# 4653|   	output.detailed = !output.brief && !output.selected && !output.prop;
# 4654|   
# 4655|-> 	err = clGetPlatformIDs(0, NULL, &plist.num_platforms);
# 4656|   	if (err != CL_PLATFORM_NOT_FOUND_KHR)
# 4657|   		CHECK_ERROR(err, "number of platforms");

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-64.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameclinfo-3.0.25.02.14-1.fc44
diffbase-store-results-to/tmp/tmpgwffrh3n/clinfo-3.0.25.02.14-1.fc44.tar.xz
diffbase-time-created2026-01-08 15:42:09
diffbase-time-finished2026-01-08 15:43:31
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpgwffrh3n/clinfo-3.0.25.02.14-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpgwffrh3n/clinfo-3.0.25.02.14-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-64.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameclinfo-3.0.23.01.25-8.fc43
store-results-to/tmp/tmpmwlq2ot8/clinfo-3.0.23.01.25-8.fc43.tar.xz
time-created2026-01-08 15:40:07
time-finished2026-01-08 15:41:58
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpmwlq2ot8/clinfo-3.0.23.01.25-8.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpmwlq2ot8/clinfo-3.0.23.01.25-8.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9