Task #390 - fixed.err

back to task #390
download
Error: GCC_ANALYZER_WARNING (CWE-401):
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):
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):
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');