Fixed defects

List of Defects

Error: COMPILER_WARNING: [#def1]
389-ds-base-3.0.1-build/389-ds-base-3.0.1/ldap/servers/slapd/csngen.h:20: included_from: Included from here.
389-ds-base-3.0.1-build/389-ds-base-3.0.1/ldap/servers/slapd/slap.h:121: included_from: Included from here.
389-ds-base-3.0.1-build/389-ds-base-3.0.1/ldap/servers/slapd/back-ldbm/back-ldbm.h:78: included_from: Included from here.
389-ds-base-3.0.1-build/389-ds-base-3.0.1/ldap/servers/slapd/back-ldbm/cache.c:16: included_from: Included from here.
389-ds-base-3.0.1-build/389-ds-base-3.0.1/ldap/servers/slapd/back-ldbm/cache.c: scope_hint: In function 'cache_is_reverted_entry'
389-ds-base-3.0.1-build/389-ds-base-3.0.1/ldap/servers/slapd/back-ldbm/cache.c:1755:73: warning[-Wformat=]: format '%lX' expects argument of type 'long unsigned int', but argument 6 has type 'struct backentry *'
# 1755 |             slapi_log_err(SLAPI_LOG_WARNING, "cache_is_reverted_entry", "Entry reverted = %d (0x%lX)  [entry: 0x%lX] refcnt=%d\n",
#      |                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#......
# 1758 |                           dummy_e, dummy_e->ep_refcnt);
#      |                           ~~~~~~~                                        
#      |                           |
#      |                           struct backentry *
389-ds-base-3.0.1-build/389-ds-base-3.0.1/ldap/servers/slapd/slapi-private.h:43:80: note: in definition of macro 'slapi_log_err'
#   43 | #define slapi_log_err(level, subsystem, ...) slapi_log_error(level, subsystem, __VA_ARGS__)
#      |                                                                                ^~~~~~~~~~~
389-ds-base-3.0.1-build/389-ds-base-3.0.1/ldap/servers/slapd/back-ldbm/cache.c:1755:115: note: format string is defined here
# 1755 |             slapi_log_err(SLAPI_LOG_WARNING, "cache_is_reverted_entry", "Entry reverted = %d (0x%lX)  [entry: 0x%lX] refcnt=%d\n",
#      |                                                                                                                 ~~^
#      |                                                                                                                   |
#      |                                                                                                                   long unsigned int
# 1753|       if (find_hash(cache->c_idtable, &e->ep_id, sizeof(ID), (void **)&dummy_e)) {
# 1754|           if (dummy_e->ep_state & ENTRY_STATE_INVALID) {
# 1755|->             slapi_log_err(SLAPI_LOG_WARNING, "cache_is_reverted_entry", "Entry reverted = %d (0x%lX)  [entry: 0x%lX] refcnt=%d\n", 
# 1756|                             dummy_e->ep_state,
# 1757|                             pthread_self(),

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-84.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-name389-ds-base-3.1.0-10.fc41
diffbase-store-results-to/tmp/tmppticjdx7/389-ds-base-3.1.0-10.fc41.tar.xz
diffbase-time-created2024-07-03 12:27:58
diffbase-time-finished2024-07-03 12:47:07
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmppticjdx7/389-ds-base-3.1.0-10.fc41.tar.xz' '--gcc-analyze' '/tmp/tmppticjdx7/389-ds-base-3.1.0-10.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-84.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-name389-ds-base-3.0.1-2.fc40
store-results-to/tmp/tmpjikozldh/389-ds-base-3.0.1-2.fc40.tar.xz
time-created2024-07-03 11:55:44
time-finished2024-07-03 12:27:42
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjikozldh/389-ds-base-3.0.1-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpjikozldh/389-ds-base-3.0.1-2.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9