Task #1555 - libical-3.0.17-4.fc40/scan-results.err
back to task #1555download
Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/redhat-linux-build/doc/reference/libical-glib/libical-glib-scan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/redhat-linux-build/doc/reference/libical-glib/libical-glib-scan.c:218:16: warning[deadcode.DeadStores]: Although the value stored to 'event_num' is used in the enclosing expression, the value is never actually read from 'event_num' Error: COMPILER_WARNING (CWE-563): libical-3.0.17-build/libical-3.0.17/redhat-linux-build/doc/reference/libical-glib/libical-glib-scan.c: scope_hint: In function ‘output_object_actions’ libical-3.0.17-build/libical-3.0.17/redhat-linux-build/doc/reference/libical-glib/libical-glib-scan.c:599:30: warning[-Wunused-parameter]: unused parameter ‘fp’ # 599 | output_object_actions (FILE *fp, GType object_type) # | ~~~~~~^~ Error: COMPILER_WARNING (CWE-477): libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical-glib/i-cal-object.c: scope_hint: In function ‘i_cal_object_class_init’ libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical-glib/i-cal-object.c:227:5: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated /usr/include/glib-2.0/gobject/gobject.h:26: included_from: Included from here. /usr/include/glib-2.0/gobject/gbinding.h:31: included_from: Included from here. /usr/include/glib-2.0/glib-object.h:24: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical-glib/i-cal-object.h:26: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical-glib/i-cal-object.c:21: included_from: Included from here. /usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here # 225| GObjectClass *object_class; # 226| # 227|-> g_type_class_add_private(class, sizeof(ICalObjectPrivate)); # 228| # 229| object_class = G_OBJECT_CLASS(class); Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical-glib/i-cal-object.c: scope_hint: In function ‘i_cal_object_init’ libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical-glib/i-cal-object.c:322:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" # 320| static void i_cal_object_init(ICalObject *iobject) # 321| { # 322|-> iobject->priv = G_TYPE_INSTANCE_GET_PRIVATE(iobject, I_CAL_TYPE_OBJECT, ICalObjectPrivate); # 323| # 324| g_mutex_init(&iobject->priv->props_lock); Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical-glib/tmp-introspectq35dk226/ICalGLib-3.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical-glib/tmp-introspectq35dk226/ICalGLib-3.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/icalderivedproperty.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/icalderivedvalue.c: scope_hint: In function ‘icalvalue_set_binary’ libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/icalderivedvalue.c:1343:25: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(v)’ libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/icalderivedvalue.c:29: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/icalderivedvalue.c:1334:5: note: in expansion of macro ‘icalerror_check_arg_rv’ libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/icalderivedvalue.c:1336:5: note: in expansion of macro ‘icalerror_check_arg_rv’ libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/icalderivedvalue.c:1336:5: note: in expansion of macro ‘icalerror_check_arg_rv’ # 1341| icalattach_unref(impl->data.v_attach); # 1342| # 1343|-> impl->data.v_attach = icalattach_new_from_data(strdup(v), free_icalvalue_attach_data, 0); # 1344| } # 1345| Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/icalrestriction.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/tmp-introspect6ahy7wqd/ICal-3.0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/redhat-linux-build/src/libical/tmp-introspect6ahy7wqd/ICal-3.0.c:799:27: warning[core.NullDereference]: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-465): libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c: scope_hint: In function ‘get_source_method_comment’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:117:20: warning[-Wanalyzer-deref-before-check]: check of ‘*para.comment’ for NULL after already dereferencing it /usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here. /usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here. /usr/include/glib-2.0/glib.h:32: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.h:23: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:16: included_from: Included from here. /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:56:5: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here. /usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:56: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:58:11: note: in expansion of macro ‘g_strdup’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c: scope_hint: In function ‘get_source_method_comment’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:73:21: note: in expansion of macro ‘g_strdup’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c: scope_hint: In function ‘get_source_method_comment’ # 115| } # 116| # 117|-> if (para->comment != NULL) { # 118| buffer = g_strconcat(res, ": ", para->comment, NULL); # 119| g_free(res); Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c: scope_hint: In function ‘get_source_method_proto’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:1830:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘method’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:56:5: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib.h:64: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:56:5: note: in expansion of macro ‘g_return_val_if_fail’ # 1828| # 1829| /* Generate the method return */ # 1830|-> if (method->ret == NULL) { # 1831| (void)g_stpcpy(buffer + strlen(buffer), "void"); # 1832| } else { Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c: scope_hint: In function ‘get_source_run_time_checkers’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:2100:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:56:5: note: in expansion of macro ‘g_return_val_if_fail’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:58:11: note: in expansion of macro ‘g_strdup’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c: scope_hint: In function ‘get_source_run_time_checkers’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:2086:5: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:2087:5: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:2087:5: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/glist.h:34: included_from: Included from here. /usr/include/glib-2.0/glib/ghash.h:36: included_from: Included from here. /usr/include/glib-2.0/glib.h:52: included_from: Included from here. /usr/include/glib-2.0/glib/gmem.h:315:57: note: in expansion of macro ‘_G_NEW’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:2089:14: note: in expansion of macro ‘g_new’ /usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:1899:5: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:1899:5: note: in expansion of macro ‘g_return_val_if_fail’ /usr/include/glib-2.0/glib/gmacros.h:1237:8: note: in definition of macro ‘_G_BOOLEAN_EXPR_IMPL’ /usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’ /usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:1899:5: note: in expansion of macro ‘g_return_val_if_fail’ libical-3.0.17-build/libical-3.0.17/src/libical-glib/tools/generator.c:1899:5: note: in expansion of macro ‘g_return_val_if_fail’ # 2098| trueType = get_true_type(parameter->type); # 2099| for (i = 0; # 2100|-> i < namespace_len && trueType[i] && namespace[i] == trueType[i]; # 2101| i++); # 2102| Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalarray.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalcomponent.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalduration.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c: scope_hint: In function ‘icalerrno_return.part.0’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:60:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘_errno’ # 58| if (!_errno) { # 59| _errno = malloc(sizeof(icalerrorenum)); # 60|-> *_errno = ICAL_NO_ERROR; # 61| pthread_setspecific(icalerrno_key, _errno); # 62| } Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c: scope_hint: In function ‘icalerror_crash_here’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:89:8: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 87| /* coverity[var_deref_op] */ # 88| /* cppcheck-suppress nullPointer */ # 89|-> *p = 1; /*clang-analyzer false positive. we want a crash*/ # 90| # 91| /* cppcheck-suppress nullPointer */ Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:89:8: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'p') # 87| /* coverity[var_deref_op] */ # 88| /* cppcheck-suppress nullPointer */ # 89|-> *p = 1; /*clang-analyzer false positive. we want a crash*/ # 90| # 91| /* cppcheck-suppress nullPointer */ Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c: scope_hint: In function ‘icalerror_clear_errno’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:98:1: warning[-Wanalyzer-malloc-leak]: leak of ‘icalerrno_return()’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:25: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:97:5: note: in expansion of macro ‘icalerrno’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:97:5: note: in expansion of macro ‘icalerrno’ # 96| { # 97| icalerrno = ICAL_NO_ERROR; # 98|-> } # 99| # 100| #if ICAL_ERRORS_ARE_FATAL == 1 Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c: scope_hint: In function ‘icalerror_set_errno’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:120:9: warning[-Wanalyzer-malloc-leak]: leak of ‘icalerrno_return()’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:119:5: note: in expansion of macro ‘icalerrno’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:119:5: note: in expansion of macro ‘icalerrno’ # 118| { # 119| icalerrno = x; # 120|-> if (icalerror_get_error_state(x) == ICAL_ERROR_FATAL || # 121| (icalerror_get_error_state(x) == ICAL_ERROR_DEFAULT && icalerror_errors_are_fatal == 1)) { # 122| icalerror_warn(icalerror_strerror(x)); Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c: scope_hint: In function ‘icalerror_perror’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:211:12: warning[-Wanalyzer-malloc-leak]: leak of ‘icalerrno_return()’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:211:31: note: in expansion of macro ‘icalerrno’ libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.c:211:31: note: in expansion of macro ‘icalerrno’ # 209| const char *icalerror_perror(void) # 210| { # 211|-> return icalerror_strerror(icalerrno); # 212| } # 213| Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icallangbind.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalmemory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/icalmemory.c: scope_hint: In function ‘buffer_ring_new’ libical-3.0.17-build/libical-3.0.17/src/libical/icalmemory.c:130:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘br’ # 128| br->ring[i] = 0; # 129| } # 130|-> br->pos = 0; # 131| return (br); # 132| } Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libical/icalmemory.c: scope_hint: In function ‘icalmemory_add_tmp_buffer’ libical-3.0.17-build/libical-3.0.17/src/libical/icalmemory.c:198:1: warning[-Wanalyzer-malloc-leak]: leak of ‘get_buffer_ring_pthread()’ libical-3.0.17-build/libical-3.0.17/src/libical/icalmemory.c: scope_hint: In function ‘icalmemory_add_tmp_buffer’ libical-3.0.17-build/libical-3.0.17/src/libical/icalmemory.c: scope_hint: In function ‘icalmemory_add_tmp_buffer’ # 196| /* Assign the buffer to a slot */ # 197| br->ring[br->pos] = buf; # 198|-> } # 199| # 200| /* Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/libical/icalmemory.c: scope_hint: In function ‘icalmemory_tmp_copy’ libical-3.0.17-build/libical-3.0.17/src/libical/icalmemory.c:246:5: warning[-Wanalyzer-null-argument]: use of NULL ‘icalmemory_tmp_buffer(strlen(str) + 1)’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null # 244| char *b = icalmemory_tmp_buffer(strlen(str) + 1); # 245| # 246|-> strcpy(b, str); # 247| # 248| return b; Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalmime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalparameter.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalparser.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/icalparser.c: scope_hint: In function ‘icalparser_set_gen_data’ libical-3.0.17-build/libical-3.0.17/src/libical/icalparser.c:142:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘parser’ # 140| void icalparser_set_gen_data(icalparser *parser, void *data) # 141| { # 142|-> parser->line_gen_data = data; # 143| } # 144| Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalparser.c: scope_hint: In function ‘icalparser_string_line_generator’ libical-3.0.17-build/libical-3.0.17/src/libical/icalparser.c:1366:5: warning[-Wstringop-truncation]: ‘strncpy’ specified bound depends on the length of the source argument # 1366 | strncpy(out, data->pos, size); # | ^ libical-3.0.17-build/libical-3.0.17/src/libical/icalparser.c:1351:20: note: length computed here # 1351 | size = strlen(data->pos); # | ^~~~~~~~~~~~~~~~~ # 1364| } # 1365| # 1366|-> strncpy(out, data->pos, size); # 1367| # 1368| if(replace_cr) { Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalproperty.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/icalproperty.c: scope_hint: In function ‘icalproperty_get_value_kind’ libical-3.0.17-build/libical-3.0.17/src/libical/icalproperty.c:341:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prop’ libical-3.0.17-build/libical-3.0.17/src/libical/icalproperty.c:27: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libical/icalproperty.c:704:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libical/icalproperty.c:704:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libical/icalproperty.c:819:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libical/icalproperty.c:819:5: note: in expansion of macro ‘icalerror_check_arg_rz’ # 339| # 340| if (kind != ICAL_NO_VALUE && # 341|-> !icalproperty_value_kind_is_default(prop->kind, kind)) { # 342| /* Not the default, so it must be specified */ # 343| kind_string = icalvalue_kind_to_string(kind); Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalrecur.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icaltime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c: scope_hint: In function ‘icaltimezone_get_builtin_timezone’ libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c:1387:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected libical-3.0.17-build/libical-3.0.17/redhat-linux-build/config.h:326: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c:21: included_from: Included from here. /usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null # 1385| zone = icalarray_element_at(builtin_timezones, lower); # 1386| zone_location = icaltimezone_get_location(zone); # 1387|-> if (strcmp(location, zone_location) == 0) # 1388| return zone; # 1389| } Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c: scope_hint: In function ‘fetch_lat_long_from_string’ libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c:1609:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘lat’ where non-null expected <built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null # 1607| len = (ptrdiff_t) (sptr - temp); # 1608| lat = (char *)malloc(len + 1); # 1609|-> memset(lat, '\0', len + 1); # 1610| strncpy(lat, temp, len); # 1611| lat[len] = '\0'; Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c: scope_hint: In function ‘icaltimezone_dump_changes’ libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c:2011:46: warning[-Wformat-truncation=]: ‘%02i’ directive output may be truncated writing 2 bytes into a region of size between 1 and 5 # 2011 | snprintf(buffer, buffer_size, "%s%02i%02i", sign, hours, minutes); # | ^~~~ libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c:2011:39: note: directive argument in the range [0, 59] # 2011 | snprintf(buffer, buffer_size, "%s%02i%02i", sign, hours, minutes); # | ^~~~~~~~~~~~ /usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 6 and 10 bytes into a destination of size 8 # 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 69 | __glibc_objsize (__s), __fmt, # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 70 | __va_arg_pack ()); # | ~~~~~~~~~~~~~~~~~ # 2009| # 2010| if (seconds == 0) { # 2011|-> snprintf(buffer, buffer_size, "%s%02i%02i", sign, hours, minutes); # 2012| } else { # 2013| snprintf(buffer, buffer_size, "%s%02i%02i%02i", sign, hours, minutes, seconds); Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c: scope_hint: In function ‘icaltimezone_dump_changes’ libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c:2013:46: warning[-Wformat-truncation=]: ‘%02i’ directive output may be truncated writing 2 bytes into a region of size between 1 and 5 # 2013 | snprintf(buffer, buffer_size, "%s%02i%02i%02i", sign, hours, minutes, seconds); # | ^~~~ libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c:2013:39: note: directive argument in the range [0, 59] # 2013 | snprintf(buffer, buffer_size, "%s%02i%02i%02i", sign, hours, minutes, seconds); # | ^~~~~~~~~~~~~~~~ libical-3.0.17-build/libical-3.0.17/src/libical/icaltimezone.c:2013:39: note: directive argument in the range [1, 59] /usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 8 and 12 bytes into a destination of size 8 # 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 69 | __glibc_objsize (__s), __fmt, # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 70 | __va_arg_pack ()); # | ~~~~~~~~~~~~~~~~~ # 2011| snprintf(buffer, buffer_size, "%s%02i%02i", sign, hours, minutes); # 2012| } else { # 2013|-> snprintf(buffer, buffer_size, "%s%02i%02i%02i", sign, hours, minutes, seconds); # 2014| } # 2015| } Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icaltz-util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/libical/icaltz-util.c: scope_hint: In function ‘parse_posix_zone’ libical-3.0.17-build/libical-3.0.17/src/libical/icaltz-util.c:249:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(size + 1)’ where non-null expected libical-3.0.17-build/libical-3.0.17/src/libical/icaltz-util.c:474:5: note: in expansion of macro ‘EFREAD’ libical-3.0.17-build/libical-3.0.17/src/libical/icaltz-util.c:511:9: note: in expansion of macro ‘EFREAD’ libical-3.0.17-build/libical-3.0.17/src/libical/icaltz-util.c: scope_hint: In function ‘parse_posix_zone’ libical-3.0.17-build/libical-3.0.17/src/libical/icaltz-util.c:585:5: note: in expansion of macro ‘EFREAD’ <built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null # 247| # 248| type->zname = (char *) malloc(size + 1); # 249|-> strncpy(type->zname, p, size); # 250| type->zname[size] = '\0'; # 251| p += size; Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c: scope_hint: In function ‘icalvalue_new_from_string_with_error’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:469:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(str)’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:28: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:443:5: note: in expansion of macro ‘icalerror_check_arg_rz’ # 467| # 468| attach = icalattach_new_from_data(strdup(str), free_icalvalue_attach_data, 0); # 469|-> if (!attach) # 470| break; # 471| Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:990:13: warning[-Wstringop-truncation]: ‘__strncat_chk’ output may be truncated copying 7 bytes from a string of length 19 # 990 | strncat(str, temp, 7); # | ^ # 988| if (icaltime_is_utc(*data)) { # 989| snprintf(temp, sizeof(temp), "%02d%02d%02dZ", data->hour, data->minute, data->second); # 990|-> strncat(str, temp, 7); # 991| } else { # 992| snprintf(temp, sizeof(temp), "%02d%02d%02d", data->hour, data->minute, data->second); Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c: scope_hint: In function ‘print_datetime_to_string’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:993:13: warning[-Wstringop-truncation]: ‘__strncat_chk’ output may be truncated copying 6 bytes from a string of length 19 # 993 | strncat(str, temp, 6); # | ^ # 991| } else { # 992| snprintf(temp, sizeof(temp), "%02d%02d%02d", data->hour, data->minute, data->second); # 993|-> strncat(str, temp, 6); # 994| } # 995| } Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c: scope_hint: In function ‘print_date_to_string.part.0.constprop.0.isra.0’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:1006:9: warning[-Wstringop-truncation]: ‘strncat’ output may be truncated copying 8 bytes from a string of length 19 # 1006 | strncat(str, temp, 8); # | ^ # 1004| if (data != 0) { # 1005| snprintf(temp, sizeof(temp), "%04d%02d%02d", data->year, data->month, data->day); # 1006|-> strncat(str, temp, 8); # 1007| } # 1008| } Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:1038:13: warning[-Wstringop-truncation]: ‘strncat’ output may be truncated copying 19 bytes from a string of length 19 # 1038 | strncat(str, temp, 19); # | ^ # 1036| temp[0] = '\0'; # 1037| print_time_to_string(temp, data); # 1038|-> strncat(str, temp, 19); # 1039| } # 1040| } Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c: scope_hint: In function ‘icalvalue_compare’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:1395:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:1297:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:1298:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:1298:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c: scope_hint: In function ‘icalvalue_compare’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c: scope_hint: In function ‘icalvalue_compare’ libical-3.0.17-build/libical-3.0.17/redhat-linux-build/config.h:326: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:23: included_from: Included from here. /usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null # 1393| temp1 = icalvalue_as_ical_string_r(a); # 1394| temp2 = icalvalue_as_ical_string_r(b); # 1395|-> r = strcmp(temp1, temp2); # 1396| free(temp1); # 1397| free(temp2); Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c: scope_hint: In function ‘icalvalue_reset_kind’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:1461:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’ libical-3.0.17-build/libical-3.0.17/src/libical/icalvalue.c:443:5: note: in expansion of macro ‘icalerror_check_arg_rz’ # 1459| void icalvalue_reset_kind(icalvalue *value) # 1460| { # 1461|-> if ((value->kind == ICAL_DATETIME_VALUE || value->kind == ICAL_DATE_VALUE) && # 1462| !icaltime_is_null_time(value->data.v_time)) { # 1463| Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/pvl.c: scope_hint: In function ‘pvl_unshift’ libical-3.0.17-build/libical-3.0.17/src/libical/pvl.c:153:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pvl_new_element(d, *L.head, 0)’ # 151| struct pvl_elem_t *E = pvl_new_element(d, L->head, 0); # 152| # 153|-> if (E->next != 0) { # 154| /* Link the head node to it */ # 155| E->next->prior = E; Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/pvl.c: scope_hint: In function ‘pvl_insert_after’ libical-3.0.17-build/libical-3.0.17/src/libical/pvl.c:303:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*L.tail’ # 301| E = pvl_new_element(d, 0, P); # 302| L->tail = E; # 303|-> E->prior->next = E; # 304| } else { # 305| E = pvl_new_element(d, P->next, P); Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/pvl.c:306:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pvl_new_element(d, *P.next, P)’ # 304| } else { # 305| E = pvl_new_element(d, P->next, P); # 306|-> E->next->prior = E; # 307| E->prior->next = E; # 308| } Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/pvl.c: scope_hint: In function ‘pvl_insert_before’ libical-3.0.17-build/libical-3.0.17/src/libical/pvl.c:332:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pvl_new_element(d, P, 0)’ # 330| if (P == L->head) { # 331| E = pvl_new_element(d, P, 0); # 332|-> E->next->prior = E; # 333| L->head = E; # 334| } else { Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/pvl.c: scope_hint: In function ‘pvl_insert_before.part.0’ libical-3.0.17-build/libical-3.0.17/src/libical/pvl.c:336:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pvl_new_element(d, P, *P.prior)’ # 334| } else { # 335| E = pvl_new_element(d, P, P->prior); # 336|-> E->prior->next = E; # 337| E->next->prior = E; # 338| } Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c: scope_hint: In function ‘sspm_write_part.isra.0’ libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c:1209:34: warning[-Wformat-truncation=]: ‘%02X’ directive output may be truncated writing between 2 and 8 bytes into a region of size 3 # 1209 | snprintf(tmp, sizeof(tmp), "=%02X", (unsigned int)ch); # | ^~~~ libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c:1209:32: note: directive argument in the range [1, 4294967295] # 1209 | snprintf(tmp, sizeof(tmp), "=%02X", (unsigned int)ch); # | ^~~~~~~ /usr/include/bits/stdio2.h:68:10: note: ‘__snprintf_chk’ output between 4 and 10 bytes into a destination of size 4 # 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 69 | __glibc_objsize (__s), __fmt, # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 70 | __va_arg_pack ()); # | ~~~~~~~~~~~~~~~~~ # 1207| char tmp[4]; # 1208| # 1209|-> snprintf(tmp, sizeof(tmp), "=%02X", (unsigned int)ch); # 1210| # 1211| sspm_append_string(buf, tmp); Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c: scope_hint: In function ‘sspm_append_char’ libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c:1235:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buf.buffer’ # 1233| # 1234| buf->pos = new_pos; # 1235|-> buf->buffer = new_buf; # 1236| } # 1237| Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c: scope_hint: In function ‘sspm_append_string’ libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c:1264:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buf.buffer’ # 1262| # 1263| buf->pos = new_pos; # 1264|-> buf->buffer = new_buf; # 1265| } # 1266| Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c: scope_hint: In function ‘sspm_write_mime’ libical-3.0.17-build/libical-3.0.17/src/libical/sspm.c:1534:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf.buffer’ # 1532| # 1533| buf.buffer = malloc(4096); # 1534|-> buf.buffer[0] = '\0'; # 1535| buf.pos = buf.buffer; # 1536| buf.buf_size = 10; Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libical/vcomponent_cxx.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcalendar.c: scope_hint: In function ‘icalcalendar_create’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcalendar.c:67:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*impl.dir’ where non-null expected libical-3.0.17-build/libical-3.0.17/src/libicalss/icalset.h:40: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcalendar.h:26: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcalendar.c:23: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcalendar.c:90:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcalendar.c:64:5: note: in expansion of macro ‘icalerror_check_arg_re’ <built-in>: note: argument 2 of ‘__builtin_strncpy’ must be non-null # 65| # 66| path[0] = '\0'; # 67|-> strncpy(path, impl->dir, MAXPATHLEN - 1); # 68| strncat(path, "/", MAXPATHLEN - strlen(path) - 1); # 69| strncat(path, BOOKED_DIR, MAXPATHLEN - strlen(path) - 1); Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalss/icalclassify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libical/icalerror.h:25: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcluster.h:24: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcluster.c:34: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcluster.c: scope_hint: In function ‘icalcluster_new’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcluster.c:64:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘icalcluster_new_impl()’ # 62| struct icalcluster_impl *impl = icalcluster_new_impl(); # 63| # 64|-> assert(impl->data == 0); # 65| # 66| impl->key = strdup(key); Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcluster.c: scope_hint: In function ‘icalcluster_new_clone’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcluster.c:93:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘icalcluster_new_impl()’ # 91| struct icalcluster_impl *impl = icalcluster_new_impl(); # 92| # 93|-> impl->key = strdup(old->key); # 94| impl->data = icalcomponent_new_clone(old->data); # 95| impl->changed = 0; Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalss/icaldirset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c: scope_hint: In function ‘icalfileset_filesize’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c:207:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*fset.path’ where non-null expected libical-3.0.17-build/libical-3.0.17/src/libicalss/icalcluster.h:24: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.h:26: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c:26: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c:80:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c:81:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c:81:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/redhat-linux-build/config.h:316: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c:23: included_from: Included from here. /usr/include/sys/stat.h:205:12: note: argument 1 of ‘stat’ must be non-null # 205| struct stat sbuf; # 206| # 207|-> if (stat(fset->path, &sbuf) != 0) { # 208| # 209| /* A file by the given name does not exist, or there was Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c: scope_hint: In function ‘shell_quote’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c:323:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’ # 321| while (*s) { # 322| if (*s == '\'') { # 323|-> *p++ = '\''; # 324| *p++ = '"'; # 325| *p++ = *s++; Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c:329:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’ # 327| *p++ = '\''; # 328| } else { # 329|-> *p++ = *s++; # 330| } # 331| } Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalfileset.c:332:8: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’ # 330| } # 331| } # 332|-> *p = '\0'; # 333| return result; # 334| } Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalss/icalgauge.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalmessage.c:72:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected libical-3.0.17-build/libical-3.0.17/src/libicalss/icalmessage.c:289:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalmessage.c:123:5: note: in expansion of macro ‘icalerror_check_arg_rz’ <built-in>: note: argument 1 of ‘__builtin_strstr’ must be non-null # 70| lattendee = lowercase(icalproperty_get_attendee(p)); # 71| # 72|-> if (strstr(lattendee, user) != 0) { # 73| free(lattendee); # 74| attendee = p; Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalmessage.c: scope_hint: In function ‘icalmessage_find_attendee’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalmessage.c:72:13: warning[-Wanalyzer-null-argument]: use of NULL ‘user’ where non-null expected libical-3.0.17-build/libical-3.0.17/src/libicalss/icalmessage.c:24: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/libicalss/icalmessage.c:289:5: note: in expansion of macro ‘icalerror_check_arg_rz’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalmessage.c:123:5: note: in expansion of macro ‘icalerror_check_arg_rz’ <built-in>: note: argument 2 of ‘__builtin_strstr’ must be non-null # 70| lattendee = lowercase(icalproperty_get_attendee(p)); # 71| # 72|-> if (strstr(lattendee, user) != 0) { # 73| free(lattendee); # 74| attendee = p; Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalss/icalspanlist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1161: warning[nullPointer]: Possible null pointer dereference: b # 1159| # 1160| int yy_c_buf_p_offset = # 1161|-> (int) ((yy_c_buf_p) - b->yy_ch_buf); # 1162| # 1163| if ( b->yy_is_our_buffer ) Error: CPPCHECK_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1163: warning[nullPointer]: Possible null pointer dereference: b # 1161| (int) ((yy_c_buf_p) - b->yy_ch_buf); # 1162| # 1163|-> if ( b->yy_is_our_buffer ) # 1164| { # 1165| size_t new_size = b->yy_buf_size * 2; Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c: scope_hint: In function ‘yy_get_next_buffer’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1172:46: warning[-Wanalyzer-malloc-leak]: leak of ‘*<unknown>.yy_ch_buf’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1158:45: note: in expansion of macro ‘YY_CURRENT_BUFFER’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1158:45: note: in expansion of macro ‘YY_CURRENT_BUFFER’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1158:45: note: in expansion of macro ‘YY_CURRENT_BUFFER’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c: scope_hint: In function ‘yy_get_next_buffer’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1158:45: note: in expansion of macro ‘YY_CURRENT_BUFFER’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1158:45: note: in expansion of macro ‘YY_CURRENT_BUFFER’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1158:45: note: in expansion of macro ‘YY_CURRENT_BUFFER’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c: scope_hint: In function ‘yy_get_next_buffer’ # 1170| b->yy_buf_size *= 2; # 1171| # 1172|-> b->yy_ch_buf = (char *) # 1173| /* Include room in for 2 EOB chars. */ # 1174| ssrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c: scope_hint: In function ‘ss_create_buffer’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1481:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c: scope_hint: In function ‘ss_create_buffer’ # 1479| YY_FATAL_ERROR( "out of dynamic memory in ss_create_buffer()" ); # 1480| # 1481|-> b->yy_buf_size = size; # 1482| # 1483| /* yy_ch_buf has to be 2 characters longer than the size given because Error: CPPCHECK_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1527: warning[nullPointer]: Possible null pointer dereference: b # 1525| ss_flush_buffer(b ); # 1526| # 1527|-> b->yy_input_file = file; # 1528| b->yy_fill_buffer = 1; # 1529| Error: CPPCHECK_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1528: warning[nullPointer]: Possible null pointer dereference: b # 1526| # 1527| b->yy_input_file = file; # 1528|-> b->yy_fill_buffer = 1; # 1529| # 1530| /* If b is the current buffer, then ss_init_buffer was _probably_ Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c: scope_hint: In function ‘ss_scan_buffer’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c:1742:32: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalsslexer.c: scope_hint: In function ‘ss_scan_buffer’ # 1740| buf[i] = yybytes[i]; # 1741| # 1742|-> buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; # 1743| # 1744| b = ss_scan_buffer(buf,n ); Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c: scope_hint: In function ‘ssparse’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:352:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:338:25: note: in expansion of macro ‘YYMALLOC’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1300:29: note: in expansion of macro ‘YYSTACK_ALLOC’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:716:7: note: in expansion of macro ‘yydebug’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1325:3: note: in expansion of macro ‘YYDPRINTF’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:716:7: note: in expansion of macro ‘yydebug’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1347:7: note: in expansion of macro ‘YYDPRINTF’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:338:25: note: in expansion of macro ‘YYMALLOC’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1300:29: note: in expansion of macro ‘YYSTACK_ALLOC’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:394:25: note: in definition of macro ‘YYCOPY’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1303:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:716:7: note: in expansion of macro ‘yydebug’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1325:3: note: in expansion of macro ‘YYDPRINTF’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:338:25: note: in expansion of macro ‘YYMALLOC’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1300:29: note: in expansion of macro ‘YYSTACK_ALLOC’ # 350| # endif # 351| # ifndef YYMALLOC # 352|-> # define YYMALLOC malloc # 353| # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ # 354| || defined __cplusplus) Error: GCC_ANALYZER_WARNING (CWE-457): libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:394:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:416:9: note: in expansion of macro ‘YYCOPY’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1303:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:394:25: note: in definition of macro ‘YYCOPY’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1303:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:416:9: note: in expansion of macro ‘YYCOPY’ libical-3.0.17-build/libical-3.0.17/src/libicalss/icalssyacc.c:1303:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ # 392| # if defined __GNUC__ && 1 < __GNUC__ # 393| # define YYCOPY(To, From, Count) \ # 394|-> __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # 395| # else # 396| # define YYCOPY(To, From, Count) \ Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/icalvcal.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vcc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vcc.c:1442:3: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value # 1440| { # 1441| case 2: # 1442|-> { addList(&vObjList, yyvsp[0].vobj); curObj = 0; } # 1443| break; # 1444| case 4: Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vcc.c:1445:3: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value # 1443| break; # 1444| case 4: # 1445|-> { addList(&vObjList, yyvsp[0].vobj); curObj = 0; } # 1446| break; # 1447| case 7: Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vcc.c:1485:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 1483| case 16: # 1484| { # 1485|-> enterProps(yyvsp[0].str); # 1486| } # 1487| break; Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vcc.c:1490:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 1488| case 18: # 1489| { # 1490|-> enterProps(yyvsp[0].str); # 1491| } # 1492| break; Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vcc.c:1495:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 1493| case 22: # 1494| { # 1495|-> enterAttr(yyvsp[0].str,0); # 1496| } # 1497| break; Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vcc.c:1500:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 1498| case 23: # 1499| { # 1500|-> enterAttr(yyvsp[-2].str,yyvsp[0].str); # 1501| # 1502| } Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vcc.c:1505:3: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 1503| break; # 1504| case 25: # 1505|-> { enterValues(yyvsp[-1].str); } # 1506| break; # 1507| case 27: Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vcc.c:1508:3: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 1506| break; # 1507| case 27: # 1508|-> { enterValues(yyvsp[0].str); } # 1509| break; # 1510| case 29: Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:151:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’ libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c: scope_hint: In function ‘lookupStr’ # 149| { # 150| StrItem *p = (StrItem*)malloc(sizeof(StrItem)); # 151|-> p->next = next; # 152| p->s = s; # 153| p->refCnt = 1; Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c: scope_hint: In function ‘appendcOFile_.part.0’ libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1072:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*fp.s’ # 1070| if (fp->alloc) # 1071| free(fp->s); # 1072|-> fp->s = 0; # 1073| fp->fail = 1; # 1074| } Error: CLANG_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1073:18: warning[unix.Malloc]: Potential memory leak # 1071| free(fp->s); # 1072| fp->s = 0; # 1073|-> fp->fail = 1; # 1074| } # 1075| } Error: COMPILER_WARNING: libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c: scope_hint: In function ‘writeGroup’ libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1265:9: warning[-Wstringop-truncation]: ‘__strncat_chk’ output may be truncated copying between 0 and 255 bytes from a string of length 255 # 1265 | strncat(buf2,buf1,sizeof(buf2)-strlen(buf2)-1); # | ^ # 1263| buf2[sizeof(buf2)-1] = '\0'; # 1264| strncat(buf2,".",sizeof(buf2)-strlen(buf2)-1); # 1265|-> strncat(buf2,buf1,sizeof(buf2)-strlen(buf2)-1); # 1266| strcpy(buf1,buf2); # 1267| } Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c: scope_hint: In function ‘fakeUnicode’ libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1428:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pw’ # 1426| while (*ps) { # 1427| if (*ps == '\n') # 1428|-> *pw = (wchar_t)0x2028; # 1429| else if (*ps == '\r') # 1430| *pw = (wchar_t)0x2029; Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1430:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pw’ # 1428| *pw = (wchar_t)0x2028; # 1429| else if (*ps == '\r') # 1430|-> *pw = (wchar_t)0x2029; # 1431| else # 1432| *pw = (wchar_t)(unsigned char)*ps; Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1432:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pw’ # 1430| *pw = (wchar_t)0x2029; # 1431| else # 1432|-> *pw = (wchar_t)(unsigned char)*ps; # 1433| ps++; pw++; # 1434| } Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1435:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pw’ # 1433| ps++; pw++; # 1434| } # 1435|-> *pw = (wchar_t)0; # 1436| # 1437| return r; Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c: scope_hint: In function ‘fakeCString’ libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1464:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t’ # 1462| while (*u) { # 1463| if (*u == (wchar_t)0x2028) # 1464|-> *t = '\n'; # 1465| else if (*u == (wchar_t)0x2029) # 1466| *t = '\r'; Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1466:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t’ # 1464| *t = '\n'; # 1465| else if (*u == (wchar_t)0x2029) # 1466|-> *t = '\r'; # 1467| else # 1468| *t = (char)*u; Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1468:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t’ # 1466| *t = '\r'; # 1467| else # 1468|-> *t = (char)*u; # 1469| u++; t++; # 1470| } Error: GCC_ANALYZER_WARNING (CWE-476): libical-3.0.17-build/libical-3.0.17/src/libicalvcal/vobject.c:1471:8: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘t’ # 1469| u++; t++; # 1470| } # 1471|-> *t = 0; # 1472| return s; # 1473| } Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/builtin_timezones.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/copycluster.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-479): libical-3.0.17-build/libical-3.0.17/src/test/copycluster.c: scope_hint: In function ‘sig_alrm’ libical-3.0.17-build/libical-3.0.17/src/test/copycluster.c:36:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler libical-3.0.17-build/libical-3.0.17/src/test/copycluster.c:36:5: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’ # 34| _unused(i); # 35| fprintf(stderr, "Could not get lock on file\n"); # 36|-> exit(1); # 37| } # 38| Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/icalrecur_test.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/process.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-479): libical-3.0.17-build/libical-3.0.17/src/test/recur.c: scope_hint: In function ‘sig_alrm’ libical-3.0.17-build/libical-3.0.17/src/test/recur.c:39:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler libical-3.0.17-build/libical-3.0.17/src/test/recur.c:39:5: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’ # 37| _unused(i); # 38| fprintf(stderr, "Could not get lock on file\n"); # 39|-> exit(1); # 40| } # 41| Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/regression-component.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/regression-cxx.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/regression-recur.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-479): libical-3.0.17-build/libical-3.0.17/src/test/regression-recur.c: scope_hint: In function ‘sig_alrm’ libical-3.0.17-build/libical-3.0.17/src/test/regression-recur.c:36:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘exit’ from within signal handler libical-3.0.17-build/libical-3.0.17/src/test/regression-recur.c:36:5: note: ‘_exit’ is a possible signal-safe alternative for ‘exit’ # 34| _unused(i); # 35| fprintf(stderr, "Could not get lock on file\n"); # 36|-> exit(1); # 37| } # 38| Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/regression-storage.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/regression.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): libical-3.0.17-build/libical-3.0.17/src/test/regression.c: scope_hint: In function ‘test_attach_data’ libical-3.0.17-build/libical-3.0.17/src/test/regression.c:4024:10: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("foofile")’ # 4022| # 4023| attach = icalattach_new_from_data(strdup("foofile"), test_free_attach_data, &free_been_called); # 4024|-> ac = icalcomponent_new(ICAL_VALARM_COMPONENT); # 4025| ap = icalproperty_new_attach(attach); # 4026| Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/stow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): libical-3.0.17-build/libical-3.0.17/src/test/stow.c: scope_hint: In function ‘get_options’ libical-3.0.17-build/libical-3.0.17/src/test/stow.c:642:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘facspath’ where non-null expected libical-3.0.17-build/libical-3.0.17/redhat-linux-build/config.h:326: included_from: Included from here. libical-3.0.17-build/libical-3.0.17/src/test/stow.c:21: included_from: Included from here. /usr/include/string.h:273:14: note: argument 1 of ‘strrchr’ must be non-null # 640| /* Cut off the last slash to make it just a directory */ # 641| # 642|-> p = strrchr(facspath, '/'); # 643| # 644| if (p != 0) { Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/testmime.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: libical-3.0.17-build/libical-3.0.17/src/test/timezones.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.