Task #130981 - evolution-data-server-3.60.0-1.fc44/scan-results.err
back to task #130981download
Error: GCC_ANALYZER_WARNING (CWE-401):
evolution-data-server-3.60.0/iconv-detect.c:100:12: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open("UTF-8", "ISO-2022-JP")’
evolution-data-server-3.60.0/iconv-detect.c:99:14: acquire_memory: allocated here
evolution-data-server-3.60.0/iconv-detect.c:100:12: danger: ‘iconv_open("UTF-8", "ISO-2022-JP")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 98|
# 99| cd = iconv_open ("UTF-8", "ISO-2022-JP");
# 100|-> if (cd == (iconv_t) -1)
# 101| return 0;
# 102|
Error: GCC_ANALYZER_WARNING (CWE-401):
evolution-data-server-3.60.0/iconv-detect.c:141:20: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(*<unknown>.charset, "UTF-8")’
evolution-data-server-3.60.0/iconv-detect.c:127:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/iconv-detect.c:130:14: branch_false: ...to here
evolution-data-server-3.60.0/iconv-detect.c:131:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/iconv-detect.c:134:9: branch_false: ...to here
evolution-data-server-3.60.0/iconv-detect.c:139:21: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/iconv-detect.c:140:38: branch_true: ...to here
evolution-data-server-3.60.0/iconv-detect.c:140:22: acquire_memory: allocated here
evolution-data-server-3.60.0/iconv-detect.c:141:20: danger: ‘iconv_open(*<unknown>.charset, "UTF-8")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 139| for (i = 0; i < num_iso8859_tests; i++) {
# 140| cd = iconv_open (info[i].charset, "UTF-8");
# 141|-> if (cd != (iconv_t) -1) {
# 142| iconv_close (cd);
# 143| /*printf ("(\"%s\", (iso), (codepage))\n", info[i].format);*/
Error: GCC_ANALYZER_WARNING (CWE-401):
evolution-data-server-3.60.0/iconv-detect.c:162:20: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(*<unknown>.charset, "UTF-8")’
evolution-data-server-3.60.0/iconv-detect.c:127:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/iconv-detect.c:130:14: branch_false: ...to here
evolution-data-server-3.60.0/iconv-detect.c:131:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/iconv-detect.c:134:9: branch_false: ...to here
evolution-data-server-3.60.0/iconv-detect.c:139:21: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/iconv-detect.c:140:38: branch_true: ...to here
evolution-data-server-3.60.0/iconv-detect.c:160:21: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/iconv-detect.c:161:38: branch_true: ...to here
evolution-data-server-3.60.0/iconv-detect.c:161:22: acquire_memory: allocated here
evolution-data-server-3.60.0/iconv-detect.c:162:20: danger: ‘iconv_open(*<unknown>.charset, "UTF-8")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
# 160| for (i = 0; i < num_iso2022_tests; i++) {
# 161| cd = iconv_open (info[i].charset, "UTF-8");
# 162|-> if (cd != (iconv_t) -1) {
# 163| iconv_close (cd);
# 164| /*printf ("(\"%s\", (iso), (codepage))\n", info[i].format);*/
Error: GCC_ANALYZER_WARNING (CWE-401):
evolution-data-server-3.60.0/iconv-detect.c:183:20: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(*<unknown>.charset, "UTF-8")’
evolution-data-server-3.60.0/iconv-detect.c:127:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/iconv-detect.c:130:14: branch_false: ...to here
evolution-data-server-3.60.0/iconv-detect.c:131:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/iconv-detect.c:134:9: branch_false: ...to here
evolution-data-server-3.60.0/iconv-detect.c:139:21: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/iconv-detect.c:140:38: branch_true: ...to here
evolution-data-server-3.60.0/iconv-detect.c:160:21: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/iconv-detect.c:161:38: branch_true: ...to here
evolution-data-server-3.60.0/iconv-detect.c:181:21: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/iconv-detect.c:182:38: branch_true: ...to here
evolution-data-server-3.60.0/iconv-detect.c:182:22: acquire_memory: allocated here
evolution-data-server-3.60.0/iconv-detect.c:183:20: danger: ‘iconv_open(*<unknown>.charset, "UTF-8")’ leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
# 181| for (i = 0; i < num_iso10646_tests; i++) {
# 182| cd = iconv_open (info[i].charset, "UTF-8");
# 183|-> if (cd != (iconv_t) -1) {
# 184| iconv_close (cd);
# 185| /*if (info[i].id < ISO_DASH_D_LOWER)
Error: COMPILER_WARNING:
evolution-data-server-3.60.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-FY6yNB/src.c:5:33: error[error]: unknown type name ‘off64_t’; did you mean ‘off_t’?
Error: COMPILER_WARNING:
evolution-data-server-3.60.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-a9TLqS/src.c:4:33: error[-Wimplicit-function-declaration]: implicit declaration of function ‘i_cal_recurrence_get_by’; did you mean ‘i_cal_recurrence_get_type’?
Error: COMPILER_WARNING:
evolution-data-server-3.60.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-a9TLqS/src.c:4:64: error[error]: ‘I_CAL_BY_MONTH’ undeclared (first use in this function); did you mean ‘I_CAL_BY_MONTH_SIZE’?
Error: COMPILER_WARNING:
evolution-data-server-3.60.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-dWy3JX/src.c:12:39: error[error]: too few arguments to function ‘gethostbyaddr_r’; expected 8, have 7
Error: COMPILER_WARNING:
evolution-data-server-3.60.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-dWy3JX/src.c:12:111: error[-Wincompatible-pointer-types]: passing argument 7 of ‘gethostbyaddr_r’ from incompatible pointer type
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/addressbook/libebook-contacts/e-contact.c:1092:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data’
evolution-data-server-3.60.0/src/addressbook/libebook-contacts/e-contact.c:955:1: enter_function: entry to ‘fn_setter’
evolution-data-server-3.60.0/src/addressbook/libebook-contacts/e-contact.c:965:38: call_function: calling ‘e_contact_name_from_string’ from ‘fn_setter’
evolution-data-server-3.60.0/src/addressbook/libebook-contacts/e-contact.c:965:38: return_function: returning to ‘fn_setter’ from ‘e_contact_name_from_string’
evolution-data-server-3.60.0/src/addressbook/libebook-contacts/e-contact.c:971:17: call_function: calling ‘n_setter’ from ‘fn_setter’
# 1090| EContactName *name = data;
# 1091|
# 1092|-> e_vcard_attribute_add_value (attr, name->family ? name->family : "");
# 1093| e_vcard_attribute_add_value (attr, name->given ? name->given : "");
# 1094| e_vcard_attribute_add_value (attr, name->additional ? name->additional : "");
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/addressbook/libebook-contacts/e-contact.c: scope_hint: In function ‘mime_type_from_filename’
evolution-data-server-3.60.0/src/addressbook/libebook-contacts/e-contact.c:4113:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 4113 | extension = strrchr (filename, '.');
# | ^
# 4111| guint len;
# 4112|
# 4113|-> extension = strrchr (filename, '.');
# 4114| if (extension)
# 4115| extension++;
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/addressbook/libebook-contacts/e-contact.c:4113:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 4111| guint len;
# 4112|
# 4113|-> extension = strrchr (filename, '.');
# 4114| if (extension)
# 4115| extension++;
Error: CPPCHECK_WARNING (CWE-457):
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-book-cache.c:5297: warning[uninitvar]: Uninitialized variable: success
# 5295|
# 5296| e_cache_thaw_revision_change (cache);
# 5297|-> e_cache_unlock (cache, success ? E_CACHE_UNLOCK_COMMIT : E_CACHE_UNLOCK_ROLLBACK);
# 5298|
# 5299| e_cache_column_values_free (other_columns);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-book-sqlite.c: scope_hint: In function ‘ebsql_introspect_summary’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-book-sqlite.c:2255:24: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2255 | if ((p = strstr (col, "_" EBSQL_SUFFIX_REVERSE)) != NULL) {
# | ^
# 2253|
# 2254| /* Check if we're parsing a reverse field */
# 2255|-> if ((p = strstr (col, "_" EBSQL_SUFFIX_REVERSE)) != NULL) {
# 2256| computed = INDEX_FLAG (SUFFIX);
# 2257| freeme = g_strndup (col, p - col);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-book-sqlite.c:2259:31: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2259 | } else if ((p = strstr (col, "_" EBSQL_SUFFIX_PHONE)) != NULL) {
# | ^
# 2257| freeme = g_strndup (col, p - col);
# 2258| col = freeme;
# 2259|-> } else if ((p = strstr (col, "_" EBSQL_SUFFIX_PHONE)) != NULL) {
# 2260| computed = INDEX_FLAG (PHONE);
# 2261| freeme = g_strndup (col, p - col);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-book-sqlite.c:2263:31: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2263 | } else if ((p = strstr (col, "_" EBSQL_SUFFIX_COUNTRY)) != NULL) {
# | ^
# 2261| freeme = g_strndup (col, p - col);
# 2262| col = freeme;
# 2263|-> } else if ((p = strstr (col, "_" EBSQL_SUFFIX_COUNTRY)) != NULL) {
# 2264| computed = INDEX_FLAG (PHONE);
# 2265| freeme = g_strndup (col, p - col);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-book-sqlite.c:2267:31: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 2267 | } else if ((p = strstr (col, "_" EBSQL_SUFFIX_SORT_KEY)) != NULL) {
# | ^
# 2265| freeme = g_strndup (col, p - col);
# 2266| col = freeme;
# 2267|-> } else if ((p = strstr (col, "_" EBSQL_SUFFIX_SORT_KEY)) != NULL) {
# 2268| computed = INDEX_FLAG (SORT_KEY);
# 2269| freeme = g_strndup (col, p - col);
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:360:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:356:17: release_memory: ‘error’ is NULL
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:359:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:360:17: branch_true: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:360:17: release_memory: ‘error’ is NULL
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:360:17: danger: dereference of NULL ‘error’
# 358| /* Get the initial cursor values */
# 359| if (!e_data_book_cursor_recalculate (cursor, NULL, &error)) {
# 360|-> g_warning (
# 361| "Failed to calculate initial cursor position: %s",
# 362| error->message);
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:789:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_error’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:758:1: enter_function: entry to ‘e_data_book_cursor_set_sexp’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:764:17: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:767:9: branch_false: following ‘false’ branch (when ‘cursor’ is non-NULL)...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:767:9: branch_false: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:770:9: branch_true: following ‘true’ branch (when ‘klass’ is non-NULL)...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:772:9: branch_true: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:774:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:775:27: branch_true: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:787:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:788:14: branch_true: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:788:14: call_function: calling ‘e_data_book_cursor_recalculate’ from ‘e_data_book_cursor_set_sexp’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:788:14: return_function: returning to ‘e_data_book_cursor_set_sexp’ from ‘e_data_book_cursor_recalculate’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:787:13: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:789:17: branch_true: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:789:17: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:789:17: danger: dereference of NULL ‘local_error’
# 787| if (success &&
# 788| !e_data_book_cursor_recalculate (cursor, cancellable, &local_error)) {
# 789|-> g_warning (
# 790| "Failed to recalculate the cursor value "
# 791| "after setting the search expression: %s",
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:932:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_error’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:910:1: enter_function: entry to ‘e_data_book_cursor_set_alphabetic_index’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:917:17: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:920:9: branch_false: following ‘false’ branch (when ‘cursor’ is non-NULL)...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:920:9: branch_false: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:923:9: branch_true: following ‘true’ branch (when ‘klass’ is non-NULL)...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:925:9: branch_true: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:927:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:928:27: branch_true: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:931:22: call_function: calling ‘e_data_book_cursor_recalculate’ from ‘e_data_book_cursor_set_alphabetic_index’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:931:22: return_function: returning to ‘e_data_book_cursor_set_alphabetic_index’ from ‘e_data_book_cursor_recalculate’
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:931:20: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:932:25: branch_true: ...to here
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:932:25: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/addressbook/libedata-book/e-data-book-cursor.c:932:25: danger: dereference of NULL ‘local_error’
# 930| /* We already set the new cursor value, we can't fail anymore so just fire a warning */
# 931| if (!e_data_book_cursor_recalculate (cursor, cancellable, &local_error)) {
# 932|-> g_warning (
# 933| "Failed to recalculate the cursor value "
# 934| "after setting the alphabetic index: %s",
Error: GCC_ANALYZER_WARNING (CWE-688):
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-check-timezones.c:83:21: warning[-Wanalyzer-null-argument]: use of NULL ‘tzid’ where non-null expected
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-check-timezones.c:264:1: enter_function: entry to ‘e_cal_client_check_timezones_sync’
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-check-timezones.c:286:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-check-timezones.c:291:24: branch_false: ...to here
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-check-timezones.c:292:14: branch_false: following ‘false’ branch (when ‘subcomp’ is NULL)...
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-check-timezones.c:410:24: branch_false: ...to here
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-check-timezones.c:411:14: branch_true: following ‘true’ branch (when ‘subcomp’ is non-NULL)...
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-check-timezones.c:422:17: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-check-timezones.c:422:17: call_function: calling ‘patch_tzids’ from ‘e_cal_client_check_timezones_sync’
# 81| const gchar *location;
# 82| const gchar *systzid = NULL;
# 83|-> gsize len = strlen (tzid);
# 84| gssize eostr;
# 85|
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-alarm-trigger.c:166:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘copy’
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-alarm-trigger.c:159:9: branch_true: following ‘true’ branch (when ‘trigger’ is non-NULL)...
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-alarm-trigger.c:161:13: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-alarm-trigger.c:166:9: danger: dereference of NULL ‘copy’
# 164| copy = e_cal_component_alarm_trigger_new_relative (trigger->kind, trigger->rel_duration);
# 165|
# 166|-> e_cal_component_parameter_bag_assign (copy->parameter_bag, trigger->parameter_bag);
# 167|
# 168| return copy;
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:772:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:931:1: enter_function: entry to ‘e_cal_component_bag_add_with_user_data’
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:943:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:944:9: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:944:9: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:944:9: branch_false: ...to here
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:945:9: branch_false: following ‘false’ branch (when ‘comp’ is non-NULL)...
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:945:9: branch_false: ...to here
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:952:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:993:24: branch_false: ...to here
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:993:24: call_function: calling ‘e_cal_component_bag_item_new’ from ‘e_cal_component_bag_add_with_user_data’
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:993:24: return_function: returning to ‘e_cal_component_bag_add_with_user_data’ from ‘e_cal_component_bag_item_new’
evolution-data-server-3.60.0/src/calendar/libecal/e-cal-component-bag.c:995:17: call_function: calling ‘e_cal_component_place_item_locked’ from ‘e_cal_component_bag_add_with_user_data’
# 770| {
# 771| GPtrArray *span_items; /* ECalComponentBagItem * */
# 772|-> guint ii, jj, previous_span_index = item->span_index;
# 773| gboolean added = FALSE;
# 774|
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4876:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_error’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4828:1: enter_function: entry to ‘e_cal_meta_backend_process_changes_sync’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4841:9: branch_false: following ‘false’ branch (when ‘meta_backend’ is non-NULL)...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4841:9: branch_false: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4843:21: call_function: calling ‘e_cal_meta_backend_ref_cache’ from ‘e_cal_meta_backend_process_changes_sync’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4843:21: return_function: returning to ‘e_cal_meta_backend_process_changes_sync’ from ‘e_cal_meta_backend_ref_cache’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4844:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4846:24: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4861:50: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4862:38: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4863:25: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4865:21: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4871:27: call_function: calling ‘ecmb_load_component_wrapper_sync’ from ‘e_cal_meta_backend_process_changes_sync’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4871:27: return_function: returning to ‘e_cal_meta_backend_process_changes_sync’ from ‘ecmb_load_component_wrapper_sync’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4874:20: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4874:33: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4874:33: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4874:21: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4875:28: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4875:28: branch_true: following ‘true’ branch (when ‘invalid_objects’ is NULL)...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4876:76: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4876:76: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4876:65: danger: dereference of NULL ‘local_error’
# 4874| if (!success && g_error_matches (local_error, E_CAL_CLIENT_ERROR, E_CAL_CLIENT_ERROR_INVALID_OBJECT)) {
# 4875| if (!invalid_objects) {
# 4876|-> invalid_objects = g_string_new (local_error->message);
# 4877| } else {
# 4878| g_string_append_c (invalid_objects, '\n');
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4903:65: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘local_error’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4828:1: enter_function: entry to ‘e_cal_meta_backend_process_changes_sync’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4841:9: branch_false: following ‘false’ branch (when ‘meta_backend’ is non-NULL)...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4841:9: branch_false: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4843:21: call_function: calling ‘e_cal_meta_backend_ref_cache’ from ‘e_cal_meta_backend_process_changes_sync’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4843:21: return_function: returning to ‘e_cal_meta_backend_process_changes_sync’ from ‘e_cal_meta_backend_ref_cache’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4844:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4846:24: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4891:49: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4892:38: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4893:25: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4895:20: branch_true: following ‘true’ branch (when ‘nfo’ is NULL)...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4895:20: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4891:49: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4892:38: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4893:25: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4895:21: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4898:27: call_function: calling ‘ecmb_load_component_wrapper_sync’ from ‘e_cal_meta_backend_process_changes_sync’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4898:27: return_function: returning to ‘e_cal_meta_backend_process_changes_sync’ from ‘ecmb_load_component_wrapper_sync’
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4901:20: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4901:33: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4901:33: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4901:21: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4902:28: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4902:28: branch_true: following ‘true’ branch (when ‘invalid_objects’ is NULL)...
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4903:76: branch_true: ...to here
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4903:76: release_memory: ‘local_error’ is NULL
evolution-data-server-3.60.0/src/calendar/libedata-cal/e-cal-meta-backend.c:4903:65: danger: dereference of NULL ‘local_error’
# 4901| if (!success && g_error_matches (local_error, E_CAL_CLIENT_ERROR, E_CAL_CLIENT_ERROR_INVALID_OBJECT)) {
# 4902| if (!invalid_objects) {
# 4903|-> invalid_objects = g_string_new (local_error->message);
# 4904| } else {
# 4905| g_string_append_c (invalid_objects, '\n');
Error: GCC_ANALYZER_WARNING (CWE-401):
evolution-data-server-3.60.0/src/camel/camel-block-file.c:1047:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopen(open(*ks_40(D)->priv.path, *ks_40(D)->priv.flags, 384), flag)’
evolution-data-server-3.60.0/src/camel/camel-block-file.c:1032:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/camel-block-file.c:1034:18: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/camel-block-file.c:1034:17: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/camel-block-file.c:1042:14: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/camel-block-file.c:1047:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/camel-block-file.c:1048:17: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/camel-block-file.c:1048:32: acquire_memory: allocated here
evolution-data-server-3.60.0/src/camel/camel-block-file.c:1047:13: danger: ‘fdopen(open(*ks_40(D)->priv.path, *ks_40(D)->priv.flags, 384), flag)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 1045| flag = "a+b";
# 1046|
# 1047|-> if ((fd = g_open (ks->priv->path, ks->priv->flags | O_BINARY, 0600)) == -1
# 1048| || (ks->priv->fp = fdopen (fd, flag)) == NULL) {
# 1049| err = errno;
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-debug.c: scope_hint: In function ‘camel_debug’
evolution-data-server-3.60.0/src/camel/camel-debug.c:104:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 104 | colon = strchr (mode, ':');
# | ^
# 102|
# 103| /* Check for fully qualified debug */
# 104|-> colon = strchr (mode, ':');
# 105| if (colon) {
# 106| fallback_len = strlen (mode) + 1;
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-debug.c:104:23: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 102|
# 103| /* Check for fully qualified debug */
# 104|-> colon = strchr (mode, ':');
# 105| if (colon) {
# 106| fallback_len = strlen (mode) + 1;
Error: GCC_ANALYZER_WARNING (CWE-688):
evolution-data-server-3.60.0/src/camel/camel-filter-search.c:1222:24: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
evolution-data-server-3.60.0/src/camel/camel-filter-search.c:1210:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/camel-filter-search.c:1213:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/camel-filter-search.c:1222:24: danger: argument 1 (‘mail_folder_uri_build(camel_folder_get_parent_store(*fms.folder), camel_folder_get_full_name(*fms.folder))’) NULL where non-null expected
# 1220| uri = mail_folder_uri_build (store, name);
# 1221|
# 1222|-> same = g_str_equal (uri, argv[0]->value.string);
# 1223| camel_filter_search_log (fms, "Message location '%s' is %ssame as requested '%s'",
# 1224| uri, same ? "" : "not ", argv[0]->value.string);
Error: GCC_ANALYZER_WARNING (CWE-131):
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:401:9: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:971:1: enter_function: entry to ‘camel_folder_thread_new_items’
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:984:9: branch_true: following ‘true’ branch (when ‘items’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:985:9: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:985:9: branch_true: following ‘true’ branch (when ‘get_uid_func’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:986:9: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:986:9: branch_true: following ‘true’ branch (when ‘get_subject_func’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:987:9: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:987:9: branch_true: following ‘true’ branch (when ‘get_message_id_func’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:988:9: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:988:9: branch_true: following ‘true’ branch (when ‘get_references_func’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:990:13: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:1015:9: call_function: calling ‘thread_items’ from ‘camel_folder_thread_new_items’
# 399| /* gather subject lines */
# 400| d (printf ("gathering subject lines\n"));
# 401|-> clast = (CamelFolderThreadNode *) cp;
# 402| c = clast->next;
# 403| while (c) {
Error: COMPILER_WARNING:
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:402:11: warning[-Warray-bounds=]: array subscript ‘struct CamelFolderThreadNode[0]’ is partly outside array bounds of ‘struct CamelFolderThreadNode[0:]’
# 402 | c = clast->next;
# | ~~^~~~~~~~~~~~~
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c: scope_hint: In function ‘thread_items’
evolution-data-server-3.60.0/src/camel/camel-folder-thread.c:662:44: note: object ‘head’ of size 8
# 662 | CamelFolderThreadNode *c, *child, *head;
# | ^~~~
# 400| d (printf ("gathering subject lines\n"));
# 401| clast = (CamelFolderThreadNode *) cp;
# 402|-> c = clast->next;
# 403| while (c) {
# 404| c->root_subject = get_root_subject (thread, c);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-folder.c: scope_hint: In function ‘folder_rename’
evolution-data-server-3.60.0/src/camel/camel-folder.c:1079:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1079 | tmp = strrchr (new, '/');
# | ^
# 1077| camel_folder_set_full_name (folder, new);
# 1078|
# 1079|-> tmp = strrchr (new, '/');
# 1080| camel_folder_set_display_name (folder, (tmp != NULL) ? tmp + 1 : new);
# 1081| }
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-folder.c:1079:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1077| camel_folder_set_full_name (folder, new);
# 1078|
# 1079|-> tmp = strrchr (new, '/');
# 1080| camel_folder_set_display_name (folder, (tmp != NULL) ? tmp + 1 : new);
# 1081| }
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/camel/camel-iconv.c:128:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘s’
evolution-data-server-3.60.0/src/camel/camel-iconv.c:191:1: enter_function: entry to ‘iconv_init’
evolution-data-server-3.60.0/src/camel/camel-iconv.c:222:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/camel-iconv.c:237:17: release_memory: using NULL here
evolution-data-server-3.60.0/src/camel/camel-iconv.c:238:17: call_function: calling ‘e_strdown’ from ‘iconv_init’
# 126| register gchar *s = str;
# 127|
# 128|-> while (*s) {
# 129| if (*s >= 'A' && *s <= 'Z')
# 130| *s += 0x20;
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-iconv.c: scope_hint: In function ‘locale_parse_lang’
evolution-data-server-3.60.0/src/camel/camel-iconv.c:156:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 156 | if ((codeset = strchr (locale, '.')))
# | ^
# 154| gchar *codeset, *lang;
# 155|
# 156|-> if ((codeset = strchr (locale, '.')))
# 157| lang = g_strndup (locale, codeset - locale);
# 158| else
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-iconv.c:156:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 154| gchar *codeset, *lang;
# 155|
# 156|-> if ((codeset = strchr (locale, '.')))
# 157| lang = g_strndup (locale, codeset - locale);
# 158| else
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-mime-utils.c: scope_hint: In function ‘rfc2047_decode_word’
evolution-data-server-3.60.0/src/camel/camel-mime-utils.c:1225:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1225 | if ((p = strchr (charset, '*')))
# | ^
# 1223|
# 1224| /* trim off the 'language' part if it's there... */
# 1225|-> if ((p = strchr (charset, '*')))
# 1226| *p = '\0';
# 1227|
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-mime-utils.c:1225:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 1223|
# 1224| /* trim off the 'language' part if it's there... */
# 1225|-> if ((p = strchr (charset, '*')))
# 1226| *p = '\0';
# 1227|
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-provider.c: scope_hint: In function ‘camel_provider_traverse_directory’
evolution-data-server-3.60.0/src/camel/camel-provider.c:206:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 206 | p = strrchr (entry, '.');
# | ^
# 204| FILE *fp;
# 205|
# 206|-> p = strrchr (entry, '.');
# 207| if (!p || strcmp (p, ".urls") != 0)
# 208| continue;
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-provider.c:206:19: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 204| FILE *fp;
# 205|
# 206|-> p = strrchr (entry, '.');
# 207| if (!p || strcmp (p, ".urls") != 0)
# 208| continue;
Error: GCC_ANALYZER_WARNING (CWE-688):
evolution-data-server-3.60.0/src/camel/camel-sasl-digest-md5.c:684:67: warning[-Wanalyzer-null-argument]: use of NULL ‘username’ where non-null expected
evolution-data-server-3.60.0/src/camel/camel-sasl-digest-md5.c:644:1: enter_function: entry to ‘digest_response’
evolution-data-server-3.60.0/src/camel/camel-sasl-digest-md5.c:652:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/camel-sasl-digest-md5.c:660:27: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-sasl-digest-md5.c:684:67: danger: argument 1 (‘username’) NULL where non-null expected
# 682| camel_iconv_close (cd);
# 683|
# 684|-> g_byte_array_append (buffer, (guint8 *) username, strlen (username));
# 685| g_free (username);
# 686| } else {
Error: GCC_ANALYZER_WARNING (CWE-688):
evolution-data-server-3.60.0/src/camel/camel-sasl-digest-md5.c:704:54: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
# 702| g_byte_array_append (buffer, (guint8 *) ",qop=", 5);
# 703| str = qop_to_string (resp->qop);
# 704|-> g_byte_array_append (buffer, (guint8 *) str, strlen (str));
# 705|
# 706| g_byte_array_append (buffer, (guint8 *) ",digest-uri=\"", 13);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-search-private.c: scope_hint: In function ‘camel_search_header_match’
evolution-data-server-3.60.0/src/camel/camel-search-private.c:536:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 536 | vdom = strchr (value, '@');
# | ^
# 534| * its old-style, so only match against the pre-domain part,
# 535| * which should be common. */
# 536|-> vdom = strchr (value, '@');
# 537| mdom = strchr (match, '@');
# 538| if (mdom != NULL && mdom != match && vdom == NULL) {
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-search-private.c:536:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 534| * its old-style, so only match against the pre-domain part,
# 535| * which should be common. */
# 536|-> vdom = strchr (value, '@');
# 537| mdom = strchr (match, '@');
# 538| if (mdom != NULL && mdom != match && vdom == NULL) {
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-search-private.c:537:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 537 | mdom = strchr (match, '@');
# | ^
# 535| * which should be common. */
# 536| vdom = strchr (value, '@');
# 537|-> mdom = strchr (match, '@');
# 538| if (mdom != NULL && mdom != match && vdom == NULL) {
# 539| v = g_alloca (mdom - match + 1);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-search-private.c:537:22: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 535| * which should be common. */
# 536| vdom = strchr (value, '@');
# 537|-> mdom = strchr (match, '@');
# 538| if (mdom != NULL && mdom != match && vdom == NULL) {
# 539| v = g_alloca (mdom - match + 1);
Error: GCC_ANALYZER_WARNING (CWE-457):
evolution-data-server-3.60.0/src/camel/camel-settings.c:51:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n_properties’
evolution-data-server-3.60.0/src/camel/camel-settings.c:38:1: enter_function: entry to ‘settings_clone’
evolution-data-server-3.60.0/src/camel/camel-settings.c:48:9: branch_true: following ‘true’ branch (when ‘class’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-settings.c:50:22: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-settings.c:50:22: call_function: calling ‘camel_settings_class_list_settings’ from ‘settings_clone’
evolution-data-server-3.60.0/src/camel/camel-settings.c:50:22: return_function: returning to ‘settings_clone’ from ‘camel_settings_class_list_settings’
evolution-data-server-3.60.0/src/camel/camel-settings.c:51:17: danger: use of uninitialized value ‘n_properties’ here
# 49|
# 50| properties = camel_settings_class_list_settings (class, &n_properties);
# 51|-> names = g_new0 (const gchar *, n_properties);
# 52| values = g_new0 (GValue, n_properties);
# 53|
Error: GCC_ANALYZER_WARNING (CWE-457):
evolution-data-server-3.60.0/src/camel/camel-settings.c:102:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n_properties’
evolution-data-server-3.60.0/src/camel/camel-settings.c:80:1: enter_function: entry to ‘settings_equal’
evolution-data-server-3.60.0/src/camel/camel-settings.c:98:9: branch_true: following ‘true’ branch (when ‘class’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-settings.c:100:22: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-settings.c:100:22: call_function: calling ‘camel_settings_class_list_settings’ from ‘settings_equal’
evolution-data-server-3.60.0/src/camel/camel-settings.c:100:22: return_function: returning to ‘settings_equal’ from ‘camel_settings_class_list_settings’
evolution-data-server-3.60.0/src/camel/camel-settings.c:102:22: branch_true: following ‘true’ branch (when ‘equal != 0’)...
evolution-data-server-3.60.0/src/camel/camel-settings.c:102:31: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-settings.c:102:31: danger: use of uninitialized value ‘n_properties’ here
# 100| properties = camel_settings_class_list_settings (class, &n_properties);
# 101|
# 102|-> for (ii = 0; equal && ii < n_properties; ii++) {
# 103| GParamSpec *pspec = properties[ii];
# 104|
Error: GCC_ANALYZER_WARNING (CWE-457):
evolution-data-server-3.60.0/src/camel/camel-sexp.c:293:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1846:1: enter_function: entry to ‘camel_sexp_eval’
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1848:9: branch_false: following ‘false’ branch (when ‘sexp’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1848:9: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1849:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1851:13: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1851:13: setjmp: ‘setjmp’ called here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1851:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1856:44: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1856:16: call_function: calling ‘camel_sexp_term_eval’ from ‘camel_sexp_eval’
# 291|
# 292| for (i = 0; i < argc; i++) {
# 293|-> camel_sexp_result_free (sexp, argv[i]);
# 294| }
# 295| }
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1890:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1870:1: enter_function: entry to ‘camel_sexp_evaluate_occur_times’
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1876:9: branch_false: following ‘false’ branch (when ‘sexp’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1876:9: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1877:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1878:9: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1878:9: branch_true: following ‘true’ branch (when ‘start’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1879:9: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1879:9: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1881:18: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1883:13: setjmp: ‘setjmp’ called here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1883:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1889:23: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1888:18: call_function: calling ‘camel_sexp_term_evaluate_occur_times’ from ‘camel_sexp_evaluate_occur_times’
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1888:18: return_function: returning to ‘camel_sexp_evaluate_occur_times’ from ‘camel_sexp_term_evaluate_occur_times’
evolution-data-server-3.60.0/src/camel/camel-sexp.c:1890:9: danger: dereference of NULL ‘camel_sexp_term_evaluate_occur_times(sexp, *sexp_20(D)->priv.tree, start, end)’
# 1888| result = camel_sexp_term_evaluate_occur_times (
# 1889| sexp, sexp->priv->tree, start, end);
# 1890|-> generator = result->time_generator;
# 1891|
# 1892| if (generator) {
Error: COMPILER_WARNING:
evolution-data-server-3.60.0/src/camel/camel-store-search.c: scope_hint: In function ‘camel_store_search_search_body_run_sync’
evolution-data-server-3.60.0/src/camel/camel-store-search.c:3830:38: warning[-Wunused-but-set-variable=]: variable ‘type’ set but not used
# 3830 | camel_search_flags_t type = CAMEL_SEARCH_MATCH_ICASE;
# | ^~~~
# 3828|
# 3829| if (self->priv->ongoing_search.message) {
# 3830|-> camel_search_flags_t type = CAMEL_SEARCH_MATCH_ICASE;
# 3831| regex_t pattern;
# 3832|
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/camel/camel-store-summary.c:163:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
evolution-data-server-3.60.0/src/camel/camel-store-summary.c:157:1: enter_function: entry to ‘store_summary_store_info_new’
evolution-data-server-3.60.0/src/camel/camel-store-summary.c:163:9: danger: dereference of NULL ‘camel_store_summary_info_new(summary)’
# 161|
# 162| info = camel_store_summary_info_new (summary);
# 163|-> info->path = g_strdup (path);
# 164| info->unread = CAMEL_STORE_INFO_FOLDER_UNKNOWN;
# 165| info->total = CAMEL_STORE_INFO_FOLDER_UNKNOWN;
Error: GCC_ANALYZER_WARNING (CWE-775):
evolution-data-server-3.60.0/src/camel/camel-stream-process.c:198:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 0)’
evolution-data-server-3.60.0/src/camel/camel-stream-process.c:198:13: acquire_resource: opened here
evolution-data-server-3.60.0/src/camel/camel-stream-process.c:198:12: danger: ‘dup2(fd, 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 196|
# 197| /* Not a lot we can do if there's an error other than bail. */
# 198|-> if (dup2 (fd, 0) == -1)
# 199| exit (1);
# 200| if (dup2 (fd, 1) == -1)
Error: GCC_ANALYZER_WARNING (CWE-775):
evolution-data-server-3.60.0/src/camel/camel-stream-process.c:200:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, 1)’
evolution-data-server-3.60.0/src/camel/camel-stream-process.c:198:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/camel-stream-process.c:200:13: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/camel-stream-process.c:200:13: acquire_resource: opened here
evolution-data-server-3.60.0/src/camel/camel-stream-process.c:200:12: danger: ‘dup2(fd, 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 198| if (dup2 (fd, 0) == -1)
# 199| exit (1);
# 200|-> if (dup2 (fd, 1) == -1)
# 201| exit (1);
# 202|
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-text-index.c: scope_hint: In function ‘tmp_name’
evolution-data-server-3.60.0/src/camel/camel-text-index.c:366:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 366 | s = strrchr (in, '/');
# | ^
# 364| gchar *s;
# 365|
# 366|-> s = strrchr (in, '/');
# 367| if (s) {
# 368| memcpy (o, in, s - in + 1);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/camel-text-index.c:366:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 364| gchar *s;
# 365|
# 366|-> s = strrchr (in, '/');
# 367| if (s) {
# 368| memcpy (o, in, s - in + 1);
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/camel/camel-vee-folder.c:1149:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1147| subfolders = camel_vee_folder_dup_folders (vfolder);
# 1148|
# 1149|-> for (ii = 0; ii < subfolders->len; ii++) {
# 1150| CamelFolder *subfolder = g_ptr_array_index (subfolders, ii);
# 1151|
Error: GCC_ANALYZER_WARNING (CWE-688):
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-command.c:484:27: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-command.c:425:1: enter_function: entry to ‘camel_imapx_command_add_part’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-command.c:483:24: call_function: inlined call to ‘g_strdup_inline’ from ‘camel_imapx_command_add_part’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-command.c:484:27: danger: argument 1 (‘<unknown>’) NULL where non-null expected
# 482| case CAMEL_IMAPX_COMMAND_STRING:
# 483| data = g_strdup (data);
# 484|-> ob_size = strlen (data);
# 485| type |= CAMEL_IMAPX_COMMAND_LITERAL_PLUS;
# 486| break;
Error: CPPCHECK_WARNING (CWE-457):
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-input-stream.c:466: error[legacyUninitvar]: Uninitialized variable: tok
# 464| }
# 465|
# 466|-> switch (tok) {
# 467| case IMAPX_TOK_ERROR:
# 468| return FALSE;
Error: GCC_ANALYZER_WARNING (CWE-688):
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-list-response.c:467:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-list-response.c:458:1: enter_function: entry to ‘camel_imapx_list_response_equal’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-list-response.c:465:21: call_function: calling ‘camel_imapx_list_response_get_mailbox_name’ from ‘camel_imapx_list_response_equal’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-list-response.c:465:21: return_function: returning to ‘camel_imapx_list_response_equal’ from ‘camel_imapx_list_response_get_mailbox_name’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-list-response.c:467:16: danger: argument 1 (‘camel_imapx_list_response_get_mailbox_name(response_a)’) NULL where non-null expected
# 465| mailbox_b = camel_imapx_list_response_get_mailbox_name (response_b);
# 466|
# 467|-> return g_str_equal (mailbox_a, mailbox_b);
# 468| }
# 469|
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:359:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:345:1: enter_function: entry to ‘camel_imapx_mailbox_matches’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:353:9: branch_false: following ‘false’ branch (when ‘mailbox’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:353:9: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:353:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:354:9: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:354:9: branch_true: following ‘true’ branch (when ‘pattern’ is non-NULL)...
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:356:16: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:356:16: call_function: calling ‘camel_imapx_mailbox_get_name’ from ‘camel_imapx_mailbox_matches’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:356:16: return_function: returning to ‘camel_imapx_mailbox_matches’ from ‘camel_imapx_mailbox_get_name’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:357:21: call_function: calling ‘camel_imapx_mailbox_get_separator’ from ‘camel_imapx_mailbox_matches’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:357:21: return_function: returning to ‘camel_imapx_mailbox_matches’ from ‘camel_imapx_mailbox_get_separator’
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-mailbox.c:359:9: danger: dereference of NULL ‘camel_imapx_mailbox_get_name(mailbox)’
# 357| separator = camel_imapx_mailbox_get_separator (mailbox);
# 358|
# 359|-> name_ch = *name++;
# 360| patt_ch = *pattern++;
# 361|
Error: COMPILER_WARNING (CWE-758):
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-utils.c:63: included_from: Included from here.
evolution-data-server-3.60.0/src/camel/providers/imapx/camel-imapx-tokens.txt:55:1: warning[-Wmissing-declarations]: no previous declaration for ‘imapx_tokenise_struct’
# 55 | SERVERBUG, IMAPX_SERVERBUG
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 53| RFC822.SIZE, IMAPX_RFC822_SIZE
# 54| RFC822.TEXT, IMAPX_RFC822_TEXT
# 55|-> SERVERBUG, IMAPX_SERVERBUG
# 56| STATUS, IMAPX_STATUS
# 57| TRYCREATE, IMAPX_TRYCREATE
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/providers/local/camel-local-summary.c: scope_hint: In function ‘local_summary_decode_x_evolution’
evolution-data-server-3.60.0/src/camel/providers/local/camel-local-summary.c:656:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 656 | header = strchr (xev, ';');
# | ^
# 654|
# 655| /* check for additional data */
# 656|-> header = strchr (xev, ';');
# 657| if (header) {
# 658| params = camel_header_param_list_decode (header + 1);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/providers/local/camel-local-summary.c:656:16: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 654|
# 655| /* check for additional data */
# 656|-> header = strchr (xev, ';');
# 657| if (header) {
# 658| params = camel_header_param_list_decode (header + 1);
Error: GCC_ANALYZER_WARNING (CWE-688):
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-store.c:1138:23: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-store.c:1092:1: enter_function: entry to ‘scan_old_dir_info’
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-store.c:1123:16: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-store.c:1129:22: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-store.c:1133:20: branch_true: following ‘true’ branch (when the strings are equal)...
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-store.c:1134:32: call_function: inlined call to ‘g_strdup_inline’ from ‘scan_old_dir_info’
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-store.c:1138:23: danger: argument 1 (‘name’) NULL where non-null expected
# 1136| name = g_build_filename (path, sn->fi->full_name, NULL);
# 1137|
# 1138|-> dir = opendir (name);
# 1139| if (dir == NULL) {
# 1140| g_free (name);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c: scope_hint: In function ‘camel_maildir_summary_name_to_info’
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:283:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 283 | p = strstr (name, pattern);
# | ^
# 281| g_clear_object (&summary);
# 282|
# 283|-> p = strstr (name, pattern);
# 284|
# 285| if (p) {
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:283:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 281| g_clear_object (&summary);
# 282|
# 283|-> p = strstr (name, pattern);
# 284|
# 285| if (p) {
Error: GCC_ANALYZER_WARNING (CWE-688):
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:912:29: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:834:1: enter_function: entry to ‘maildir_summary_sync’
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:859:58: branch_true: following ‘true’ branch (when ‘i >= 0’)...
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:860:36: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:904:27: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:905:42: call_function: calling ‘camel_maildir_summary_info_to_name’ from ‘maildir_summary_sync’
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:905:42: return_function: returning to ‘maildir_summary_sync’ from ‘camel_maildir_summary_info_to_name’
evolution-data-server-3.60.0/src/camel/providers/local/camel-maildir-summary.c:912:29: danger: argument 1 (‘camel_maildir_summary_info_to_name(camel_folder_summary_peek_loaded(cls, uid))’) NULL where non-null expected
# 910|
# 911| /* have our flags/ i.e. name changed? */
# 912|-> if (strcmp (newname, camel_maildir_message_info_get_filename (mdi))) {
# 913| name = g_strdup_printf ("%s/cur/%s", cls->folder_path, camel_maildir_message_info_get_filename (mdi));
# 914| dest = g_strdup_printf ("%s/cur/%s", cls->folder_path, newname);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/providers/local/camel-mh-store.c: scope_hint: In function ‘folder_info_new’
evolution-data-server-3.60.0/src/camel/providers/local/camel-mh-store.c:256:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 256 | base = strrchr (path, '/');
# | ^
# 254| gchar *base;
# 255|
# 256|-> base = strrchr (path, '/');
# 257|
# 258| /* Build the folder info structure. */
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/camel/providers/local/camel-mh-store.c:256:14: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 254| gchar *base;
# 255|
# 256|-> base = strrchr (path, '/');
# 257|
# 258| /* Build the folder info structure. */
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test1.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test1.c:42:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 42 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 40|
# 41| /* clear out any camel-test data */
# 42|-> system ("/bin/rm -rf /tmp/camel-test");
# 43|
# 44| session = camel_test_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test10.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test10.c:86:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 86 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 84|
# 85| /* clear out any camel-test data */
# 86|-> system ("/bin/rm -rf /tmp/camel-test");
# 87|
# 88| session = camel_test_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test11.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test11.c:124:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 124 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 122|
# 123| /* clear out any camel-test data */
# 124|-> system ("/bin/rm -rf /tmp/camel-test");
# 125|
# 126| session = camel_test_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test2.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test2.c:44:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 44 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 42|
# 43| /* clear out any camel-test data */
# 44|-> system ("/bin/rm -rf /tmp/camel-test");
# 45|
# 46| session = camel_test_session_new ("/tmp/camel-test");
Error: GCC_ANALYZER_WARNING (CWE-775):
evolution-data-server-3.60.0/src/camel/tests/folder/test2.c:56:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘creat("/tmp/camel-test/testbox", 384)’
evolution-data-server-3.60.0/src/camel/tests/folder/test2.c:49:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
evolution-data-server-3.60.0/src/camel/tests/folder/test2.c:50:30: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/tests/folder/test2.c:56:9: acquire_resource: opened here
evolution-data-server-3.60.0/src/camel/tests/folder/test2.c:56:9: danger: ‘creat("/tmp/camel-test/testbox", 384)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 54|
# 55| /* create a pseudo-spool file, and check that */
# 56|-> g_warn_if_fail (creat ("/tmp/camel-test/testbox", 0600) != -1);
# 57| test_folder_message_ops (session, "spool:///tmp/camel-test/testbox", TRUE, "INBOX");
# 58|
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test3.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test3.c:177:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 177 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 175|
# 176| /* clear out any camel-test data */
# 177|-> system ("/bin/rm -rf /tmp/camel-test");
# 178|
# 179| session = camel_test_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test4.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test4.c:38:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 38 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 36|
# 37| /* clear out any camel-test data */
# 38|-> system ("/bin/rm -rf /tmp/camel-test");
# 39|
# 40| session = camel_test_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test5.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test5.c:38:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 38 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 36|
# 37| /* clear out any camel-test data */
# 38|-> system ("/bin/rm -rf /tmp/camel-test");
# 39|
# 40| session = camel_test_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test6.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test6.c:37:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 37 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 35|
# 36| /* clear out any camel-test data */
# 37|-> system ("/bin/rm -rf /tmp/camel-test");
# 38|
# 39| session = camel_test_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test7.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test7.c:38:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 38 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 36|
# 37| /* clear out any camel-test data */
# 38|-> system ("/bin/rm -rf /tmp/camel-test");
# 39|
# 40| session = camel_test_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test8.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test8.c:153:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 153 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 151|
# 152| /* clear out any camel-test data */
# 153|-> system ("/bin/rm -rf /tmp/camel-test");
# 154|
# 155| session = camel_test_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/folder/test9.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/folder/test9.c:113:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 113 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 111|
# 112| /* clear out any camel-test data */
# 113|-> system ("/bin/rm -rf /tmp/camel-test");
# 114|
# 115| camel_test_start ("Simple filtering of mbox");
Error: GCC_ANALYZER_WARNING (CWE-479):
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:80:17: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:122:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:125:14: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:125:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:78:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:79:17: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:80:17: danger: call to ‘printf’ from within signal handler
# 78| if (!indie) {
# 79| indie = 1;
# 80|-> printf ("\n\nReceived fatal signal %d\n", sig);
# 81| g_hash_table_foreach (info_table, (GHFunc) dump_action, 0);
# 82|
Error: GCC_ANALYZER_WARNING (CWE-479):
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:84:25: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:122:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:125:14: branch_false: ...to here
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:125:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:78:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:79:17: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:83:20: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:84:25: branch_true: ...to here
evolution-data-server-3.60.0/src/camel/tests/lib/camel-test.c:84:25: danger: call to ‘printf’ from within signal handler
# 82|
# 83| if (camel_test_verbose > 2) {
# 84|-> printf ("Attach debugger to pid %d to debug\n", getpid ());
# 85| sleep (1000);
# 86| }
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:787:40: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘unsigned int’ but received ‘char (*)[11]’ for variadic argument 4 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:229:1: enter_function: entry to ‘test_vee_folder_create_folders’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:243:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_create_folders’ with 15 variadic arguments
# 785| record.usertags = va_arg (ap, gchar *);
# 786| } else if (g_str_equal (tmp, "flags")) {
# 787|-> record.flags = va_arg (ap, guint32);
# 788| } else if (g_str_equal (tmp, "dsent")) {
# 789| record.dsent = va_arg (ap, gint64);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:787:40: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘unsigned int’ but received ‘char (*)[3]’ for variadic argument 2 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1845:1: enter_function: entry to ‘test_vee_folder_match_threads’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1866:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_match_threads’ with 35 variadic arguments
# 785| record.usertags = va_arg (ap, gchar *);
# 786| } else if (g_str_equal (tmp, "flags")) {
# 787|-> record.flags = va_arg (ap, guint32);
# 788| } else if (g_str_equal (tmp, "dsent")) {
# 789| record.dsent = va_arg (ap, gint64);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:787:40: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘unsigned int’ but received ‘char (*)[6]’ for variadic argument 4 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1845:1: enter_function: entry to ‘test_vee_folder_match_threads’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1866:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_match_threads’ with 35 variadic arguments
# 785| record.usertags = va_arg (ap, gchar *);
# 786| } else if (g_str_equal (tmp, "flags")) {
# 787|-> record.flags = va_arg (ap, guint32);
# 788| } else if (g_str_equal (tmp, "dsent")) {
# 789| record.dsent = va_arg (ap, gint64);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:789:40: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘char (*)[11]’ for variadic argument 4 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:229:1: enter_function: entry to ‘test_vee_folder_create_folders’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:243:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_create_folders’ with 15 variadic arguments
# 787| record.flags = va_arg (ap, guint32);
# 788| } else if (g_str_equal (tmp, "dsent")) {
# 789|-> record.dsent = va_arg (ap, gint64);
# 790| } else if (g_str_equal (tmp, "dreceived")) {
# 791| record.dreceived = va_arg (ap, gint64);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:789:40: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘char (*)[3]’ for variadic argument 2 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1845:1: enter_function: entry to ‘test_vee_folder_match_threads’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1866:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_match_threads’ with 35 variadic arguments
# 787| record.flags = va_arg (ap, guint32);
# 788| } else if (g_str_equal (tmp, "dsent")) {
# 789|-> record.dsent = va_arg (ap, gint64);
# 790| } else if (g_str_equal (tmp, "dreceived")) {
# 791| record.dreceived = va_arg (ap, gint64);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:789:40: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘char (*)[6]’ for variadic argument 4 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1845:1: enter_function: entry to ‘test_vee_folder_match_threads’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1866:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_match_threads’ with 35 variadic arguments
# 787| record.flags = va_arg (ap, guint32);
# 788| } else if (g_str_equal (tmp, "dsent")) {
# 789|-> record.dsent = va_arg (ap, gint64);
# 790| } else if (g_str_equal (tmp, "dreceived")) {
# 791| record.dreceived = va_arg (ap, gint64);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:791:44: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘char (*)[11]’ for variadic argument 4 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:229:1: enter_function: entry to ‘test_vee_folder_create_folders’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:243:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_create_folders’ with 15 variadic arguments
# 789| record.dsent = va_arg (ap, gint64);
# 790| } else if (g_str_equal (tmp, "dreceived")) {
# 791|-> record.dreceived = va_arg (ap, gint64);
# 792| } else if (g_str_equal (tmp, "size")) {
# 793| record.size = va_arg (ap, guint32);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:791:44: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘char (*)[3]’ for variadic argument 2 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1845:1: enter_function: entry to ‘test_vee_folder_match_threads’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1866:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_match_threads’ with 35 variadic arguments
# 789| record.dsent = va_arg (ap, gint64);
# 790| } else if (g_str_equal (tmp, "dreceived")) {
# 791|-> record.dreceived = va_arg (ap, gint64);
# 792| } else if (g_str_equal (tmp, "size")) {
# 793| record.size = va_arg (ap, guint32);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:791:44: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘long int’ but received ‘char (*)[6]’ for variadic argument 4 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1845:1: enter_function: entry to ‘test_vee_folder_match_threads’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1866:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_match_threads’ with 35 variadic arguments
# 789| record.dsent = va_arg (ap, gint64);
# 790| } else if (g_str_equal (tmp, "dreceived")) {
# 791|-> record.dreceived = va_arg (ap, gint64);
# 792| } else if (g_str_equal (tmp, "size")) {
# 793| record.size = va_arg (ap, guint32);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:793:39: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘unsigned int’ but received ‘char (*)[11]’ for variadic argument 4 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:229:1: enter_function: entry to ‘test_vee_folder_create_folders’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:243:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_create_folders’ with 15 variadic arguments
# 791| record.dreceived = va_arg (ap, gint64);
# 792| } else if (g_str_equal (tmp, "size")) {
# 793|-> record.size = va_arg (ap, guint32);
# 794| } else if (g_str_equal (tmp, "part")) {
# 795| record.part = va_arg (ap, gchar *);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:793:39: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘unsigned int’ but received ‘char (*)[3]’ for variadic argument 2 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1845:1: enter_function: entry to ‘test_vee_folder_match_threads’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1866:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_match_threads’ with 35 variadic arguments
# 791| record.dreceived = va_arg (ap, gint64);
# 792| } else if (g_str_equal (tmp, "size")) {
# 793|-> record.size = va_arg (ap, guint32);
# 794| } else if (g_str_equal (tmp, "part")) {
# 795| record.part = va_arg (ap, gchar *);
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/camel/tests/misc/lib-camel-test-utils.c:793:39: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘unsigned int’ but received ‘char (*)[6]’ for variadic argument 4 of ‘ap’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1845:1: enter_function: entry to ‘test_vee_folder_match_threads’
evolution-data-server-3.60.0/src/camel/tests/misc/test-vee-folder.c:1866:9: call_function: calling ‘test_add_messages’ from ‘test_vee_folder_match_threads’ with 35 variadic arguments
# 791| record.dreceived = va_arg (ap, gint64);
# 792| } else if (g_str_equal (tmp, "size")) {
# 793|-> record.size = va_arg (ap, guint32);
# 794| } else if (g_str_equal (tmp, "part")) {
# 795| record.part = va_arg (ap, gchar *);
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/smime/pgp.c: scope_hint: In function ‘main’
evolution-data-server-3.60.0/src/camel/tests/smime/pgp.c:85:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 85 | system ("/bin/rm -rf /tmp/camel-test");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 83|
# 84| /* clear out any camel-test data */
# 85|-> system ("/bin/rm -rf /tmp/camel-test");
# 86| /*
# 87| * You need to add the private-keys-v1.d folder for this
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/smime/pgp.c:100:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 100 | system ("gpg --import " TEST_DATA_DIR "/camel-test.gpg.pub > /dev/null 2>&1");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 98|
# 99| g_message ("gpg --import " TEST_DATA_DIR "/camel-test.gpg.pub > /dev/null 2>&1");
# 100|-> system ("gpg --import " TEST_DATA_DIR "/camel-test.gpg.pub > /dev/null 2>&1");
# 101| g_message ("gpg --import " TEST_DATA_DIR "/camel-test.gpg.sec > /dev/null 2>&1");
# 102| system ("gpg --import " TEST_DATA_DIR "/camel-test.gpg.sec > /dev/null 2>&1");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/smime/pgp.c:102:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 102 | system ("gpg --import " TEST_DATA_DIR "/camel-test.gpg.sec > /dev/null 2>&1");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 100| system ("gpg --import " TEST_DATA_DIR "/camel-test.gpg.pub > /dev/null 2>&1");
# 101| g_message ("gpg --import " TEST_DATA_DIR "/camel-test.gpg.sec > /dev/null 2>&1");
# 102|-> system ("gpg --import " TEST_DATA_DIR "/camel-test.gpg.sec > /dev/null 2>&1");
# 103|
# 104| session = camel_pgp_session_new ("/tmp/camel-test");
Error: COMPILER_WARNING (CWE-252):
evolution-data-server-3.60.0/src/camel/tests/smime/pgp.c:149:9: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
# 149 | system ("echo 1A7B616196E654BA5B8CF177A62EDCB3B1907A17:6: | gpg --import-ownertrust 2>/dev/null");
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 147| camel_test_push ("PGP verify trusted");
# 148| /* this sets the ultimate trust on the imported key */
# 149|-> system ("echo 1A7B616196E654BA5B8CF177A62EDCB3B1907A17:6: | gpg --import-ownertrust 2>/dev/null");
# 150| valid = camel_cipher_context_verify_sync (ctx, sigpart, NULL, &error);
# 151| check_msg (error == NULL, "%s", error->message);
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:196:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘colon’
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:281:1: enter_function: entry to ‘e_free_form_exp_to_sexp’
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:288:9: branch_true: following ‘true’ branch (when ‘free_form_exp’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:289:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:289:9: branch_true: following ‘true’ branch (when ‘symbols’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:291:21: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:291:21: call_function: calling ‘ffe_tokenize_words’ from ‘e_free_form_exp_to_sexp’
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:291:21: return_function: returning to ‘e_free_form_exp_to_sexp’ from ‘ffe_tokenize_words’
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:293:32: branch_true: following ‘true’ branch (when ‘link’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:294:30: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:296:20: branch_false: following ‘false’ branch (when ‘word’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:299:21: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:299:20: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:302:25: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-free-form-exp.c:302:25: call_function: calling ‘ffe_process_word’ from ‘e_free_form_exp_to_sexp’
# 194| g_free (options);
# 195| options = NULL;
# 196|-> } else if (colon[1]) {
# 197| in_word = colon + 1;
# 198| } else if (next_word) {
Error: GCC_ANALYZER_WARNING (CWE-686):
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:387:22: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘gint’ {{aka ‘int’}} but received ‘long unsigned int’ for variadic argument 2 of ‘ap’
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1685:1: enter_function: entry to ‘e_gdata_session_tasks_move_sync’
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1697:9: branch_false: following ‘false’ branch (when ‘self’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1697:9: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1698:9: branch_true: following ‘true’ branch (when ‘tasklist_id’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1699:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1699:9: branch_true: following ‘true’ branch (when ‘task_id’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1701:16: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1702:19: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1702:54: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-gdata-session.c:1702:19: call_function: calling ‘e_gdata_session_new_message’ from ‘e_gdata_session_tasks_move_sync’ with 7 variadic arguments
# 385| separator = base_url_has_params ? '&' : '?';
# 386| while (name) {
# 387|-> gint type = va_arg (ap, gint);
# 388|
# 389| if (!uri) {
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1158:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1713:1: enter_function: entry to ‘e_sexp_evaluate_occur_times’
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1720:9: branch_false: following ‘false’ branch (when ‘sexp’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1720:9: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1721:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1722:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1722:9: branch_true: following ‘true’ branch (when ‘start’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1723:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1723:9: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1725:18: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1727:13: setjmp: ‘setjmp’ called here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1727:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1732:53: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1732:13: call_function: calling ‘e_sexp_term_evaluate_occur_times’ from ‘e_sexp_evaluate_occur_times’
# 1156| else {
# 1157| /* normal function: we need to scan all objects */
# 1158|-> r->time_generator = FALSE;
# 1159| }
# 1160|
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1733:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1713:1: enter_function: entry to ‘e_sexp_evaluate_occur_times’
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1720:9: branch_false: following ‘false’ branch (when ‘sexp’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1720:9: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1721:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1722:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1722:9: branch_true: following ‘true’ branch (when ‘start’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1723:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1723:9: branch_true: following ‘true’ branch (when ‘end’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1725:18: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1727:13: setjmp: ‘setjmp’ called here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1727:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1732:53: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1732:13: call_function: calling ‘e_sexp_term_evaluate_occur_times’ from ‘e_sexp_evaluate_occur_times’
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1732:13: return_function: returning to ‘e_sexp_evaluate_occur_times’ from ‘e_sexp_term_evaluate_occur_times’
evolution-data-server-3.60.0/src/libedataserver/e-sexp.c:1733:9: danger: dereference of NULL ‘e_sexp_term_evaluate_occur_times(sexp, *sexp_20(D)->priv.tree, start, end)’
# 1731|
# 1732| r = e_sexp_term_evaluate_occur_times (sexp, sexp->priv->tree, start, end);
# 1733|-> generator = r->time_generator;
# 1734|
# 1735| if (generator) {
Error: GCC_ANALYZER_WARNING (CWE-685):
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:220:17: warning[-Wanalyzer-va-list-exhausted]: ‘va’ has no more arguments (1 consumed)
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:455:1: enter_function: entry to ‘e_xml_document_add_attribute’
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:460:9: branch_false: following ‘false’ branch (when ‘xml’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:460:9: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:461:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:462:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:462:9: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:463:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:463:9: branch_true: following ‘true’ branch (when ‘value’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:465:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-document.c:465:9: call_function: calling ‘e_xml_document_ensure_namespace’ from ‘e_xml_document_add_attribute’
# 218|
# 219| while (ns_prefix = va_arg (va, const gchar *), ns_prefix) {
# 220|-> ns_href = va_arg (va, const gchar *);
# 221| if (!ns_href)
# 222| ns_href = "";
Error: GCC_ANALYZER_WARNING (CWE-1341):
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:158:23: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘open(g_build_filename(g_path_get_dirname(filename), g_strconcat(".#", g_path_get_basename(filename), 0), 0), 577, 384)’
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:123:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:128:9: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:129:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:137:9: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:149:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:158:23: release_resource: first ‘close’ here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:158:16: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:158:23: danger: second ‘close’ here; first ‘close’ was at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 156| }
# 157|
# 158|-> while ((ret = close (fd)) == -1 && errno == EINTR)
# 159| ;
# 160|
Error: GCC_ANALYZER_WARNING (CWE-121):
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:785:41: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:748:1: enter_function: entry to ‘e_xml_find_children_nodes’
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:761:9: branch_true: following ‘true’ branch (when ‘parent’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:762:9: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:762:9: branch_true: following ‘true’ branch (when ‘count != 0’)...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:764:16: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:768:22: branch_true: following ‘true’ branch (when ‘ii < count’)...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:769:21: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:778:39: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:778:39: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:779:30: branch_true: following ‘true’ branch (when ‘count > ii’)...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:780:80: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:780:29: call_function: calling ‘e_xml_is_element_name’ from ‘e_xml_find_children_nodes’
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:780:29: return_function: returning to ‘e_xml_find_children_nodes’ from ‘e_xml_is_element_name’
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:780:28: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:781:34: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:784:36: branch_true: following ‘true’ branch (when ‘ii < count’)...
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:785:56: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserver/e-xml-utils.c:785:41: danger: read of 24 bytes at offset ‘(long unsigned int)(count + 4294967295) * 24’ exceeds the buffer
# 783|
# 784| if (ii < count)
# 785|-> data[ii] = data[count];
# 786|
# 787| break;
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/src/libedataserverui/e-reminders-widget.c:331:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘st’
evolution-data-server-3.60.0/src/libedataserverui/e-reminders-widget.c:1278:1: enter_function: entry to ‘reminders_widget_add_snooze_add_button_clicked_cb’
evolution-data-server-3.60.0/src/libedataserverui/e-reminders-widget.c:1286:9: branch_false: following ‘false’ branch (when ‘user_data’ is non-NULL)...
evolution-data-server-3.60.0/src/libedataserverui/e-reminders-widget.c:1286:9: branch_false: ...to here
evolution-data-server-3.60.0/src/libedataserverui/e-reminders-widget.c:1292:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/libedataserverui/e-reminders-widget.c:1294:26: branch_true: ...to here
evolution-data-server-3.60.0/src/libedataserverui/e-reminders-widget.c:1350:9: call_function: calling ‘reminders_widget_fill_snooze_options’ from ‘reminders_widget_add_snooze_add_button_clicked_cb’
# 329| SnoozeTime *st = g_ptr_array_index (stored_times, ii);
# 330|
# 331|-> reminders_widget_add_snooze_menu_item (section, st->kind, st->minutes, NULL);
# 332|
# 333| g_hash_table_add (reminders->priv->existing_snooze_times, st);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c: scope_hint: In function ‘e_autoconfig_read_user_variables’
evolution-data-server-3.60.0/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c:668:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 668 | sep = strchr (line, '=');
# | ^
# 666| continue;
# 667|
# 668|-> sep = strchr (line, '=');
# 669| if (!sep || sep == line) {
# 670| e_source_registry_debug_print ("Autoconfig: GSettings' autoconfig-variables line '%s' doesn't conform format 'name=value'.\n", line);
Error: COMPILER_WARNING (CWE-704):
evolution-data-server-3.60.0/src/services/evolution-source-registry/evolution-source-registry-autoconfig.c:668:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 666| continue;
# 667|
# 668|-> sep = strchr (line, '=');
# 669| if (!sep || sep == line) {
# 670| e_source_registry_debug_print ("Autoconfig: GSettings' autoconfig-variables line '%s' doesn't conform format 'name=value'.\n", line);
Error: GCC_ANALYZER_WARNING (CWE-775):
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:195:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘outputfile’
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:902:1: enter_function: entry to ‘addressbook_export_thread’
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:906:9: branch_true: following ‘true’ branch (when ‘user_data’ is non-NULL)...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:909:13: branch_true: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:909:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:910:43: branch_true: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:910:17: call_function: calling ‘action_list_init’ from ‘addressbook_export_thread’
# 193| if (outputfile && outputfile != stdout)
# 194| fclose (outputfile);
# 195|-> }
# 196|
# 197| typedef enum _CARD_FORMAT CARD_FORMAT;
Error: GCC_ANALYZER_WARNING (CWE-401):
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:195:1: warning[-Wanalyzer-malloc-leak]: leak of ‘outputfile’
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:902:1: enter_function: entry to ‘addressbook_export_thread’
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:906:9: branch_true: following ‘true’ branch (when ‘user_data’ is non-NULL)...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:909:13: branch_true: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:909:12: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:910:43: branch_true: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:910:17: call_function: calling ‘action_list_init’ from ‘addressbook_export_thread’
# 193| if (outputfile && outputfile != stdout)
# 194| fclose (outputfile);
# 195|-> }
# 196|
# 197| typedef enum _CARD_FORMAT CARD_FORMAT;
Error: GCC_ANALYZER_WARNING (CWE-775):
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:829:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘outputfile’
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:902:1: enter_function: entry to ‘addressbook_export_thread’
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:906:9: branch_true: following ‘true’ branch (when ‘user_data’ is non-NULL)...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:909:13: branch_true: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:909:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:912:19: branch_false: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:912:19: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:913:17: branch_true: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:913:17: call_function: calling ‘action_export_init’ from ‘addressbook_export_thread’
# 827| fclose (outputfile);
# 828| }
# 829|-> }
# 830|
# 831| static void
Error: GCC_ANALYZER_WARNING (CWE-401):
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:829:1: warning[-Wanalyzer-malloc-leak]: leak of ‘outputfile’
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:902:1: enter_function: entry to ‘addressbook_export_thread’
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:906:9: branch_true: following ‘true’ branch (when ‘user_data’ is non-NULL)...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:909:13: branch_true: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:909:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:912:19: branch_false: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:912:19: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:913:17: branch_true: ...to here
evolution-data-server-3.60.0/src/tools/addressbook-export/addressbook-export.c:913:17: call_function: calling ‘action_export_init’ from ‘addressbook_export_thread’
# 827| fclose (outputfile);
# 828| }
# 829|-> }
# 830|
# 831| static void
Error: CPPCHECK_WARNING (CWE-476):
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:95: warning[nullPointer]: Possible null pointer dereference: values
# 93|
# 94| g_assert_true (values != NULL);
# 95|-> g_assert_cmpstr (values->data, ==, data->formatted_number);
# 96|
# 97| values = e_vcard_attribute_get_param (tel, EVC_X_E164);
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:95:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘values’
# 93|
# 94| g_assert_true (values != NULL);
# 95|-> g_assert_cmpstr (values->data, ==, data->formatted_number);
# 96|
# 97| values = e_vcard_attribute_get_param (tel, EVC_X_E164);
Error: CPPCHECK_WARNING (CWE-476):
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:114: warning[nullPointer]: Possible null pointer dereference: values
# 112|
# 113| g_assert_true (values != NULL);
# 114|-> g_assert_cmpstr (values->data, ==, data->formatted_number);
# 115|
# 116| values = e_vcard_attribute_get_param (tel, EVC_X_E164);
Error: GCC_ANALYZER_WARNING (CWE-476):
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:114:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘values’
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:92:18: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:92:24: branch_true: ...to here
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:94:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:95:9: branch_true: ...to here
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:100:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:103:9: branch_false: ...to here
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:105:12: branch_false: following ‘false’ branch...
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:108:9: branch_false: ...to here
evolution-data-server-3.60.0/tests/libebook/client/test-book-client-e164-param.c:114:9: danger: dereference of NULL ‘values’
# 112|
# 113| g_assert_true (values != NULL);
# 114|-> g_assert_cmpstr (values->data, ==, data->formatted_number);
# 115|
# 116| values = e_vcard_attribute_get_param (tel, EVC_X_E164);
Error: GCC_ANALYZER_WARNING (CWE-688):
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:979:9: warning[-Wanalyzer-null-argument]: use of NULL ‘tmp’ where non-null expected
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:865:1: enter_function: entry to ‘test_create_contacts’
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:871:16: release_memory: using NULL here
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:871:16: release_memory: using NULL here
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:879:9: branch_true: following ‘true’ branch (when ‘backend_sync_class’ is non-NULL)...
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:880:9: branch_true: ...to here
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:880:9: branch_true: following ‘true’ branch...
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:883:22: branch_true: ...to here
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:899:9: call_function: calling ‘e_book_meta_backend_test_reset_counters’ from ‘test_create_contacts’
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:899:9: return_function: returning to ‘test_create_contacts’ from ‘e_book_meta_backend_test_reset_counters’
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:924:9: call_function: calling ‘e_book_meta_backend_test_reset_counters’ from ‘test_create_contacts’
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:924:9: return_function: returning to ‘test_create_contacts’ from ‘e_book_meta_backend_test_reset_counters’
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:962:9: call_function: calling ‘e_book_meta_backend_test_change_online’ from ‘test_create_contacts’
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:962:9: return_function: returning to ‘test_create_contacts’ from ‘e_book_meta_backend_test_change_online’
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:978:9: branch_false: following ‘false’ branch (when ‘tmp’ is NULL)...
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:978:9: branch_false: ...to here
evolution-data-server-3.60.0/tests/libedata-book/test-book-meta-backend.c:979:9: danger: argument 1 (‘tmp’) NULL where non-null expected
# 977| tmp = strstr (vcards[0], "UID:custom-9\r\n");
# 978| g_assert_nonnull (tmp);
# 979|-> memcpy (tmp, "X-TEST:*007*", 12);
# 980|
# 981| success = backend_sync_class->create_contacts_sync (E_BOOK_BACKEND_SYNC (meta_backend),
Error: COMPILER_WARNING:
evolution-data-server-3.60.0/tests/libedata-cal/test-cal-cache-intervals.c: scope_hint: In function ‘test_intervals’
evolution-data-server-3.60.0/tests/libedata-cal/test-cal-cache-intervals.c:202:14: warning[-Wunused-but-set-variable=]: variable ‘num_deleted’ set but not used
# 202 | gint num_deleted = 0;
# | ^~~~~~~~~~~
# 200| GSList *l1, *intervals = NULL;
# 201| GHashTable *from_intervals;
# 202|-> gint num_deleted = 0;
# 203| gint ii, start, end;
# 204| gboolean success;