Fixed findings

List of Findings

Error: COMPILER_WARNING (CWE-195): [#def1]
kinfocenter-6.4.5/kcms/about-distro/src/GPUEntryFactory.cpp: scope_hint: In function ‘bool {anonymous}::devicesAddUpAfterStripping(std::vector<GPUEntry::Device>&, bool)’
kinfocenter-6.4.5/kcms/about-distro/src/GPUEntryFactory.cpp:193:24: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘std::vector<GPUEntry::Device>::size_type’ {aka ‘long unsigned int’} and ‘int’
#  193 |     if (devices.size() != drmDeviceCount()) {
#      |         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
#  191|       }
#  192|   
#  193|->     if (devices.size() != drmDeviceCount()) {
#  194|           stripLlvmpipe(devices);
#  195|           if (devices.size() != drmDeviceCount()) {

Error: COMPILER_WARNING (CWE-195): [#def2]
kinfocenter-6.4.5/kcms/about-distro/src/GPUEntryFactory.cpp:195:28: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘std::vector<GPUEntry::Device>::size_type’ {aka ‘long unsigned int’} and ‘int’
#  195 |         if (devices.size() != drmDeviceCount()) {
#      |             ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
#  193|       if (devices.size() != drmDeviceCount()) {
#  194|           stripLlvmpipe(devices);
#  195|->         if (devices.size() != drmDeviceCount()) {
#  196|               return false;
#  197|           }

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-240.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-namekinfocenter-6.5.4-1.fc44
diffbase-store-results-to/tmp/tmp0y6qefg2/kinfocenter-6.5.4-1.fc44.tar.xz
diffbase-time-created2026-01-08 18:19:35
diffbase-time-finished2026-01-08 18:22:11
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp0y6qefg2/kinfocenter-6.5.4-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp0y6qefg2/kinfocenter-6.5.4-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-240.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-namekinfocenter-6.4.5-1.fc43
store-results-to/tmp/tmptrl_ugzo/kinfocenter-6.4.5-1.fc43.tar.xz
time-created2026-01-08 18:16:11
time-finished2026-01-08 18:19:14
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmptrl_ugzo/kinfocenter-6.4.5-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmptrl_ugzo/kinfocenter-6.4.5-1.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9