Fixed findings

List of Findings

Error: COMPILER_WARNING: [#def1]
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/bp.c: scope_hint: In function ‘add_node’
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/bp.c:49:29: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
#   49 |         node = calloc(sizeof(*node), 1);
#      |                             ^
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/bp.c:49:29: note: earlier argument should specify number of elements, later size of each element
#   47|   	struct mynode *node;
#   48|   
#   49|-> 	node = calloc(sizeof(*node), 1);
#   50|   	if (!node)
#   51|   		return -1;

Error: COMPILER_WARNING: [#def2]
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/mb.c: scope_hint: In function ‘add_node’
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/mb.c:50:29: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
#   50 |         node = calloc(sizeof(*node), 1);
#      |                             ^
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/mb.c:50:29: note: earlier argument should specify number of elements, later size of each element
#   48|   	struct mynode *node;
#   49|   
#   50|-> 	node = calloc(sizeof(*node), 1);
#   51|   	if (!node)
#   52|   		return -1;

Error: COMPILER_WARNING: [#def3]
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/membarrier.c: scope_hint: In function ‘add_node’
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/membarrier.c:50:29: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
#   50 |         node = calloc(sizeof(*node), 1);
#      |                             ^
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/membarrier.c:50:29: note: earlier argument should specify number of elements, later size of each element
#   48|   	struct mynode *node;
#   49|   
#   50|-> 	node = calloc(sizeof(*node), 1);
#   51|   	if (!node)
#   52|   		return -1;

Error: COMPILER_WARNING: [#def4]
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/qsbr.c: scope_hint: In function ‘add_node’
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/qsbr.c:49:29: warning[-Wcalloc-transposed-args]: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument
#   49 |         node = calloc(sizeof(*node), 1);
#      |                             ^
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/doc/examples/urcu-flavors/qsbr.c:49:29: note: earlier argument should specify number of elements, later size of each element
#   47|   	struct mynode *node;
#   48|   
#   49|-> 	node = calloc(sizeof(*node), 1);
#   50|   	if (!node)
#   51|   		return -1;

Error: COMPILER_WARNING: [#def5]
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/urcu.c:719: included_from: Included from here.
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/urcu-call-rcu-impl.h: scope_hint: In function 'urcu_memb_barrier'
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/urcu-call-rcu-impl.h:912:35: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
#  912 |         completion = calloc(sizeof(*completion), 1);
#      |                                   ^
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/urcu-call-rcu-impl.h:912:35: note: earlier argument should specify number of elements, later size of each element
#  910|   	}
#  911|   
#  912|-> 	completion = calloc(sizeof(*completion), 1);
#  913|   	if (!completion)
#  914|   		urcu_die(errno);

Error: COMPILER_WARNING: [#def6]
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/urcu-call-rcu-impl.h:927:37: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
#  927 |                 work = calloc(sizeof(*work), 1);
#      |                                     ^
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/urcu-call-rcu-impl.h:927:37: note: earlier argument should specify number of elements, later size of each element
#  925|   		struct call_rcu_completion_work *work;
#  926|   
#  927|-> 		work = calloc(sizeof(*work), 1);
#  928|   		if (!work)
#  929|   			urcu_die(errno);

Error: COMPILER_WARNING: [#def7]
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/workqueue.c: scope_hint: In function 'urcu_workqueue_create_completion'
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/workqueue.c:401:35: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
#  401 |         completion = calloc(sizeof(*completion), 1);
#      |                                   ^
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/workqueue.c:401:35: note: earlier argument should specify number of elements, later size of each element
#  399|   	struct urcu_workqueue_completion *completion;
#  400|   
#  401|-> 	completion = calloc(sizeof(*completion), 1);
#  402|   	if (!completion)
#  403|   		urcu_die(errno);

Error: COMPILER_WARNING: [#def8]
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/workqueue.c: scope_hint: In function 'urcu_workqueue_queue_completion'
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/workqueue.c:432:29: warning[-Wcalloc-transposed-args]: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument
#  432 |         work = calloc(sizeof(*work), 1);
#      |                             ^
userspace-rcu-0.14.0-build/userspace-rcu-0.14.0/src/workqueue.c:432:29: note: earlier argument should specify number of elements, later size of each element
#  430|   	struct urcu_workqueue_completion_work *work;
#  431|   
#  432|-> 	work = calloc(sizeof(*work), 1);
#  433|   	if (!work)
#  434|   		urcu_die(errno);

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
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-88.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-nameuserspace-rcu-0.14.1-1.fc42
diffbase-store-results-to/tmp/tmp5hn44mdf/userspace-rcu-0.14.1-1.fc42.tar.xz
diffbase-time-created2024-11-13 03:26:59
diffbase-time-finished2024-11-13 03:30:04
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp5hn44mdf/userspace-rcu-0.14.1-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp5hn44mdf/userspace-rcu-0.14.1-1.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-88.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameuserspace-rcu-0.14.0-5.fc41
store-results-to/tmp/tmpvklz2tjy/userspace-rcu-0.14.0-5.fc41.tar.xz
time-created2024-11-13 03:23:13
time-finished2024-11-13 03:26:39
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpvklz2tjy/userspace-rcu-0.14.0-5.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpvklz2tjy/userspace-rcu-0.14.0-5.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9