Fixed defects

List of Defects

Error: CPPCHECK_WARNING (CWE-457): [#def1]
liburing-2.5-build/liburing-2.5/examples/send-zerocopy.c:122: error[uninitvar]: Uninitialized variable: &mask
#  120|   		return;
#  121|   
#  122|-> 	ret = io_uring_register_iowq_aff(ring, 1, &mask);
#  123|   	if (ret)
#  124|   		t_error(1, ret, "unabled to set io-wq affinity\n");

Error: CLANG_WARNING: [#def2]
liburing-2.5-build/liburing-2.5/test/pollfree.c:364:5: warning[deadcode.DeadStores]: Value stored to 'res' is never read
#  362|       *(uint32_t*)0x20000a98 = -1;
#  363|       memset((void*)0x20000a9c, 0, 12);
#  364|->     res = -1;
#  365|       res = syz_io_uring_setup(0x87, 0x20000a80, 0x206d6000, 0x206d7000,
#  366|                                0x20000000, 0x20000040);

Error: CPPCHECK_WARNING: [#def3]
liburing-2.5-build/liburing-2.5/test/sqpoll-cancel-hang.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def4]
liburing-2.5-build/liburing-2.5/test/sqpoll-cancel-hang.c:112:5: warning[deadcode.DeadStores]: Value stored to 'res' is never read
#  110|       *(uint32_t*)0x20000218 = -1;
#  111|       memset((void*)0x2000021c, 0, 12);
#  112|->     res = -1;
#  113|       res = syz_io_uring_setup(0x7987, 0x20000200, 0x20400000, 0x20ffd000, 0x200000c0, 0x200001c0);
#  114|       if (res != -1) {

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-211.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameliburing-2.6-1.fc41
diffbase-store-results-to/tmp/tmprf8dn0a0/liburing-2.6-1.fc41.tar.xz
diffbase-time-created2024-07-03 16:06:53
diffbase-time-finished2024-07-03 16:09:35
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmprf8dn0a0/liburing-2.6-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmprf8dn0a0/liburing-2.6-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-211.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameliburing-2.5-3.fc40
store-results-to/tmp/tmpa92nef5d/liburing-2.5-3.fc40.tar.xz
time-created2024-07-03 16:03:48
time-finished2024-07-03 16:06:41
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpa92nef5d/liburing-2.5-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpa92nef5d/liburing-2.5-3.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9