Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/iconv-detect.c:102:24: warning[-Wanalyzer-malloc-leak]: leak of ‘transbuf’
#  100|   	cd = iconv_open ("UTF-8", "ISO-2022-JP");
#  101|   	if (cd == (iconv_t) -1)
#  102|-> 		return 0;
#  103|   
#  104|   	if (iconv (cd, &jp, &jp_len, &trans, &utf8_len) == -1 || jp_len != 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c: scope_hint: In function ‘e_book_meta_backend_process_changes_sync’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3830:76: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_error’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:38: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3788:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.h:40:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3788:31: note: in expansion of macro ‘E_IS_BOOK_META_BACKEND’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3788:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.h:40:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3788:31: note: in expansion of macro ‘E_IS_BOOK_META_BACKEND’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3085:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.h:40:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3085:31: note: in expansion of macro ‘E_IS_BOOK_META_BACKEND’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3085:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.h:40:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3085:31: note: in expansion of macro ‘E_IS_BOOK_META_BACKEND’
/usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/libedataserver/e-cancellable-locks.h:32: included_from: Included from here.
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/libedataserver/libedataserver.h:23: included_from: Included from here.
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libebook-contacts/libebook-contacts.h:23: included_from: Included from here.
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-backend-sexp.h:29: included_from: Included from here.
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:42: included_from: Included from here.
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3090:25: note: in expansion of macro ‘g_object_ref’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3791:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1113:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libebook-contacts/e-contact.h:44:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1113:31: note: in expansion of macro ‘E_IS_CONTACT’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1113:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libebook-contacts/e-contact.h:44:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1113:31: note: in expansion of macro ‘E_IS_CONTACT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1180:32: note: in expansion of macro ‘FALSE’
# 3828|   		if (!success && g_error_matches (local_error, E_CLIENT_ERROR, E_CLIENT_ERROR_INVALID_ARG)) {
# 3829|   			if (!invalid_objects) {
# 3830|-> 				invalid_objects = g_string_new (local_error->message);
# 3831|   			} else {
# 3832|   				g_string_append_c (invalid_objects, '\n');

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3863:76: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_error’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3788:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.h:40:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3788:31: note: in expansion of macro ‘E_IS_BOOK_META_BACKEND’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3788:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.h:40:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3788:31: note: in expansion of macro ‘E_IS_BOOK_META_BACKEND’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3085:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.h:40:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3085:31: note: in expansion of macro ‘E_IS_BOOK_META_BACKEND’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3085:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.h:40:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3085:31: note: in expansion of macro ‘E_IS_BOOK_META_BACKEND’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3090:25: note: in expansion of macro ‘g_object_ref’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:3791:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1113:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libebook-contacts/e-contact.h:44:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1113:31: note: in expansion of macro ‘E_IS_CONTACT’
/usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1113:9: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/gobject/gtype.h:541:66: note: in expansion of macro ‘_G_TYPE_CIT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libebook-contacts/e-contact.h:44:10: note: in expansion of macro ‘G_TYPE_CHECK_INSTANCE_TYPE’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1113:31: note: in expansion of macro ‘E_IS_CONTACT’
evolution-data-server-3.52.0-build/evolution-data-server-3.52.0/src/addressbook/libedata-book/e-book-meta-backend.c:1180:32: note: in expansion of macro ‘FALSE’
# 3861|   		if (!success && g_error_matches (local_error, E_CLIENT_ERROR, E_CLIENT_ERROR_INVALID_ARG)) {
# 3862|   			if (!invalid_objects) {
# 3863|-> 				invalid_objects = g_string_new (local_error->message);
# 3864|   			} else {
# 3865|   				g_string_append_c (invalid_objects, '\n');

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-8.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameevolution-data-server-3.53.1-1.fc41
diffbase-store-results-to/tmp/tmpgwzq5l1z/evolution-data-server-3.53.1-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:47:35
diffbase-time-finished2024-07-03 13:04:41
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpgwzq5l1z/evolution-data-server-3.53.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpgwzq5l1z/evolution-data-server-3.53.1-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-8.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameevolution-data-server-3.52.0-1.fc40
store-results-to/tmp/tmpkfmnxc9w/evolution-data-server-3.52.0-1.fc40.tar.xz
time-created2024-07-03 12:29:25
time-finished2024-07-03 12:47:05
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpkfmnxc9w/evolution-data-server-3.52.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpkfmnxc9w/evolution-data-server-3.52.0-1.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9