Fixed defects

List of Defects

Error: CPPCHECK_WARNING (CWE-457): [#def1]
xmlrpc-c-1.59.02-build/xmlrpc-c-1.59.02/src/xmlrpc_struct.c:156: error[legacyUninitvar]: Uninitialized variable: structP
#  154|       } else {
#  155|           size_t const size = 
#  156|->             XMLRPC_MEMBLOCK_SIZE(xmlrpc_value *, structP->blockP);
#  157|   
#  158|           xmlrpc_createXmlrpcValue(envP, &structP);

Error: CLANG_WARNING: [#def2]
xmlrpc-c-1.59.02-build/xmlrpc-c-1.59.02/src/xmlrpc_struct.c:156:50: warning[core.NullDereference]: Access to field 'blockP' results in a dereference of an undefined pointer value (loaded from variable 'structP')
#  154|       } else {
#  155|           size_t const size = 
#  156|->             XMLRPC_MEMBLOCK_SIZE(xmlrpc_value *, structP->blockP);
#  157|   
#  158|           xmlrpc_createXmlrpcValue(envP, &structP);

Error: COMPILER_WARNING (CWE-457): [#def3]
xmlrpc-c-1.59.02-build/xmlrpc-c-1.59.02/src/xmlrpc_struct.c:156:57: warning[-Wmaybe-uninitialized]: ‘structP’ may be used uninitialized
#  156 |             XMLRPC_MEMBLOCK_SIZE(xmlrpc_value *, structP->blockP);
#      |                                                         ^~
xmlrpc-c-1.59.02-build/xmlrpc-c-1.59.02/src/xmlrpc_struct.c: scope_hint: In function ‘xmlrpc_struct_new_value’
xmlrpc-c-1.59.02-build/xmlrpc-c-1.59.02/src/xmlrpc_struct.c:147:20: note: ‘structP’ declared here
#  147 |     xmlrpc_value * structP;
#      |                    ^~~~~~~
#  154|       } else {
#  155|           size_t const size = 
#  156|->             XMLRPC_MEMBLOCK_SIZE(xmlrpc_value *, structP->blockP);
#  157|   
#  158|           xmlrpc_createXmlrpcValue(envP, &structP);

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-191.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namexmlrpc-c-1.59.03-1.fc41
diffbase-store-results-to/tmp/tmp_s8zu76x/xmlrpc-c-1.59.03-1.fc41.tar.xz
diffbase-time-created2024-07-03 19:46:28
diffbase-time-finished2024-07-03 19:49:34
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp_s8zu76x/xmlrpc-c-1.59.03-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp_s8zu76x/xmlrpc-c-1.59.03-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-191.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namexmlrpc-c-1.59.02-2.fc40
store-results-to/tmp/tmp59d5vifp/xmlrpc-c-1.59.02-2.fc40.tar.xz
time-created2024-07-03 19:42:42
time-finished2024-07-03 19:46:14
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp59d5vifp/xmlrpc-c-1.59.02-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp59d5vifp/xmlrpc-c-1.59.02-2.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9