Fixed findings

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
subscription-manager-1.30.7/src/daemons/rhsmcertd.c:715: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: config
#  713|   
#  714|       // Set the default values
#  715|->     config->auto_reg_interval_seconds = DEFAULT_AUTO_REG_INTERVAL_SECONDS;
#  716|       config->cert_interval_seconds = DEFAULT_CERT_INTERVAL_SECONDS;
#  717|       config->splay = DEFAULT_SPLAY_ENABLED;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
subscription-manager-1.30.7/src/daemons/rhsmcertd.c: scope_hint: In function ‘get_config’
subscription-manager-1.30.7/src/daemons/rhsmcertd.c:715:39: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘config’
#  713|   
#  714|       // Set the default values
#  715|->     config->auto_reg_interval_seconds = DEFAULT_AUTO_REG_INTERVAL_SECONDS;
#  716|       config->cert_interval_seconds = DEFAULT_CERT_INTERVAL_SECONDS;
#  717|       config->splay = DEFAULT_SPLAY_ENABLED;

Scan Properties

analyzer-version-clippy1.88.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.88.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-121.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-namesubscription-manager-1.30.7-1.20250704230602198724.pr3578.15.gd93266bd4
diffbase-store-results-to/tmp/tmpxx5dz_xa/subscription-manager-1.30.7-1.20250704230602198724.pr3578.15.gd93266bd4.tar.xz
diffbase-time-created2025-07-05 16:20:26
diffbase-time-finished2025-07-05 16:24:16
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmpxx5dz_xa/subscription-manager-1.30.7-1.20250704230602198724.pr3578.15.gd93266bd4.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpxx5dz_xa/subscription-manager-1.30.7-1.20250704230602198724.pr3578.15.gd93266bd4.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-121.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-namesubscription-manager-1.30.7-1.20250704044640888170.main.14.g3033025f3
store-results-to/tmp/tmplho482f4/subscription-manager-1.30.7-1.20250704044640888170.main.14.g3033025f3.tar.xz
time-created2025-07-05 16:16:39
time-finished2025-07-05 16:20:07
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,unicontrol,gcc,clippy,cppcheck' '-o' '/tmp/tmplho482f4/subscription-manager-1.30.7-1.20250704044640888170.main.14.g3033025f3.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmplho482f4/subscription-manager-1.30.7-1.20250704044640888170.main.14.g3033025f3.src.rpm'
tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9