Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:580:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  578|   		return NULL;
#  579|   	config = &chanb->config;
#  580|-> 	offset &= chanb->buf_size - 1;
#  581|   	sbidx = offset >> chanb->subbuf_size_order;
#  582|   	sb = shmp_index(handle, bufb->buf_wsb, sbidx);

Error: COMPILER_WARNING (CWE-563): [#def2]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c: scope_hint: In function 'lttng_ust_ctl_get_mmap_base'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:117:17: warning[-Wunused-value]: statement with no effect
#  117 |                 true; \
#      |                 ^~~~
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1762:13: note: in expansion of macro 'sigbus_begin'
# 1762 |         if (sigbus_begin())
#      |             ^~~~~~~~~~~~
#  115|   		/* SIGBUS. */ \
#  116|   		CMM_STORE_SHARED(lttng_ust_sigbus_state.jmp_ready, 0); \
#  117|-> 		true; \
#  118|   	} \
#  119|   	cmm_barrier(); \

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.0.1
analyzer-version-gcc-analyzer16.0.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.0.1
diffbase-analyzer-version-gcc-analyzer16.0.1
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-66.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.20260420.180315.gd39a405.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelttng-ust-2.15.0-1.fc45
diffbase-store-results-to/tmp/tmpfcdzj171/lttng-ust-2.15.0-1.fc45.tar.xz
diffbase-time-created2026-04-28 18:07:50
diffbase-time-finished2026-04-28 18:10:40
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpfcdzj171/lttng-ust-2.15.0-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpfcdzj171/lttng-ust-2.15.0-1.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-66.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260420.180315.gd39a405.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelttng-ust-2.14.0-5.fc44
store-results-to/tmp/tmpqnjmaxrq/lttng-ust-2.14.0-5.fc44.tar.xz
time-created2026-04-28 18:04:04
time-finished2026-04-28 18:07:25
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,shellcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpqnjmaxrq/lttng-ust-2.14.0-5.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqnjmaxrq/lttng-ust-2.14.0-5.fc44.src.rpm'
tool-versioncsmock-3.8.5-1.el9