2025-09-03 18:57 ftp://ftp.de.debian.org/debian/pool/main/s/sylfilter/sylfilter_0.8.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=sqlite3 --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: e6e045f (2025-09-02 21:05:14 +0200) count: 62 197 elapsed-time: 4.2 11.6 head-timing-info: old-timing-info: head results: sylfilter-0.8/lib/filter-kvs.c:20:46: style: Parameter 'engine' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter-kvs.c:40:46: style: Parameter 'kvs' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter-kvs.c:46:42: style: Parameter 'kvs' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter-kvs.c:120:11: style: Variable 'ival' is assigned a value that is never used. [unreadVariable] sylfilter-0.8/lib/filter-kvs.c:159:14: style: Variable 'ival' is assigned a value that is never used. [unreadVariable] sylfilter-0.8/lib/filter-kvs.c:180:14: style: Variable 'ival' is assigned a value that is never used. [unreadVariable] sylfilter-0.8/lib/filter-manager.c:111:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filter-utils.c:148:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filter.c:397:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filter.c:65:39: style: Parameter 'filter' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter.c:72:39: style: Parameter 'filter' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter.c:79:44: style: Parameter 'filter' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter.c:83:44: style: Parameter 'filter' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter.c:314:42: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter.c:346:56: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter.c:353:62: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filter.c:360:54: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] sylfilter-0.8/lib/filters/bayes-filter.c:101:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XM_FROM [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/bayes-filter.c:461:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_ERROR [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/bayes-filter.c:509:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_TEST [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/bayes-filter.c:642:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_ERROR [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/bayes-filter.c:707:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_CONTENT [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/bayes-filter.c:717:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_CONTENT [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/bayes-filter.c:727:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_CONTENT [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/bayes-filter.c:737:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_CONTENT [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/bayes-filter.c:900:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/bayes-filter.c:464:15: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] sylfilter-0.8/lib/filters/bayes-filter.c:645:15: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] sylfilter-0.8/lib/filters/bayes-filter.c:770:39: style: Parameter 'kvs' can be declared as pointer to const. However it seems that 'show_walk_func' is a callback function, if 'kvs' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sylfilter-0.8/lib/filters/bayes-filter.c:828:34: note: You might need to cast the function pointer here sylfilter-0.8/lib/filters/bayes-filter.c:770:39: note: Parameter 'kvs' can be declared as pointer to const sylfilter-0.8/lib/filters/bayes-filter.c:838:22: style: Variable 'kc' can be declared as pointer to const [constVariablePointer] sylfilter-0.8/lib/filters/bayes-filter.c:67:17: style: Variable 'bp' is assigned a value that is never used. [unreadVariable] sylfilter-0.8/lib/filters/bayes-filter.c:867:12: style: Variable 'version' is assigned a value that is never used. [unreadVariable] sylfilter-0.8/lib/filters/blacklist-filter.c:15:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_NOJUNK [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/blacklist-filter.c:22:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_TEST [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/blacklist-filter.c:13:54: style: Parameter 'filter' can be declared as pointer to const. However it seems that 'xfilter_blacklist_func' is a callback function, if 'filter' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sylfilter-0.8/lib/filters/blacklist-filter.c:24:10: note: You might need to cast the function pointer here sylfilter-0.8/lib/filters/blacklist-filter.c:13:54: note: Parameter 'filter' can be declared as pointer to const sylfilter-0.8/lib/filters/blacklist-filter.c:13:103: style: Parameter 'result' can be declared as pointer to const. However it seems that 'xfilter_blacklist_func' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sylfilter-0.8/lib/filters/blacklist-filter.c:24:10: note: You might need to cast the function pointer here sylfilter-0.8/lib/filters/blacklist-filter.c:13:103: note: Parameter 'result' can be declared as pointer to const sylfilter-0.8/lib/filters/ngram-filter.c:25:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_ERROR [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/ngram-filter.c:56:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_CONTENT [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/ngram-filter.c:33:7: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] sylfilter-0.8/lib/filters/textcontent-filter.c:102:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIME_TEXT [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/textcontent-filter.c:180:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_ERROR [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/textcontent-filter.c:219:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_CONTENT [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/textcontent-filter.c:188:7: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] sylfilter-0.8/lib/filters/textcontent-filter.c:192:14: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] sylfilter-0.8/lib/filters/textcontent-filter.c:117:11: style: Variable 'h' can be declared as pointer to const [constVariablePointer] sylfilter-0.8/lib/filters/textcontent-filter.c:118:13: style: Variable 'ep' can be declared as pointer to const [constVariablePointer] sylfilter-0.8/lib/filters/whitelist-filter.c:15:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_NOJUNK [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/whitelist-filter.c:22:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_TEST [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/whitelist-filter.c:13:54: style: Parameter 'filter' can be declared as pointer to const. However it seems that 'xfilter_whitelist_func' is a callback function, if 'filter' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sylfilter-0.8/lib/filters/whitelist-filter.c:24:10: note: You might need to cast the function pointer here sylfilter-0.8/lib/filters/whitelist-filter.c:13:54: note: Parameter 'filter' can be declared as pointer to const sylfilter-0.8/lib/filters/whitelist-filter.c:13:103: style: Parameter 'result' can be declared as pointer to const. However it seems that 'xfilter_whitelist_func' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] sylfilter-0.8/lib/filters/whitelist-filter.c:24:10: note: You might need to cast the function pointer here sylfilter-0.8/lib/filters/whitelist-filter.c:13:103: note: Parameter 'result' can be declared as pointer to const sylfilter-0.8/lib/filters/wordsep-filter.c:94:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_UNICODE_OTHER_LETTER [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/wordsep-filter.c:330:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_ERROR [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/wordsep-filter.c:380:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XF_CONTENT [valueFlowBailoutIncompleteVar] sylfilter-0.8/lib/filters/wordsep-filter.c:338:7: style: g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strncasecmpCalled] sylfilter-0.8/lib/filters/wordsep-filter.c:126:21: style: Variable 'sep_str' can be declared as pointer to const [constVariablePointer] sylfilter-0.8/libsylph/base64.c:68:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT [valueFlowBailoutIncompleteVar] sylfilter-0.8/libsylph/utils.h:26:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] sylfilter-0.8/libsylph/utils.h:26:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] sylfilter-0.8/libsylph/quoted-printable.c:108:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT [valueFlowBailoutIncompleteVar] sylfilter-0.8/libsylph/quoted-printable.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] sylfilter-0.8/libsylph/unmime.c:95:8: style: Variable 'len' is assigned a value that is never used. [unreadVariable] sylfilter-0.8/src/sylfilter.c:420:47: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] diff: 2.18.0 sylfilter-0.8/libsylph/codeconv.c:1122:16: style: Variable 'char_tbl' can be declared as const array [constVariable] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:1490:18: style:inconclusive: Function 'conv_iconv_strdup' argument 2 names different: declaration 'src_encoding' definition 'src_code'. [funcArgNamesDifferent] sylfilter-0.8/libsylph/codeconv.h:200:20: note: Function 'conv_iconv_strdup' argument 2 names different: declaration 'src_encoding' definition 'src_code'. sylfilter-0.8/libsylph/codeconv.c:1490:18: note: Function 'conv_iconv_strdup' argument 2 names different: declaration 'src_encoding' definition 'src_code'. 2.18.0 sylfilter-0.8/libsylph/codeconv.c:1490:41: style:inconclusive: Function 'conv_iconv_strdup' argument 3 names different: declaration 'dest_encoding' definition 'dest_code'. [funcArgNamesDifferent] sylfilter-0.8/libsylph/codeconv.h:201:20: note: Function 'conv_iconv_strdup' argument 3 names different: declaration 'dest_encoding' definition 'dest_code'. sylfilter-0.8/libsylph/codeconv.c:1490:41: note: Function 'conv_iconv_strdup' argument 3 names different: declaration 'dest_encoding' definition 'dest_code'. 2.18.0 sylfilter-0.8/libsylph/codeconv.c:1502:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:1553:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EILSEQ [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:1971:16: style: Local variable 'p' shadows outer variable [shadowVariable] sylfilter-0.8/libsylph/codeconv.c:1932:15: note: Shadowed declaration sylfilter-0.8/libsylph/codeconv.c:1971:16: note: Shadow variable 2.18.0 sylfilter-0.8/libsylph/codeconv.c:2064:16: style: Local variable 'p' shadows outer variable [shadowVariable] sylfilter-0.8/libsylph/codeconv.c:2039:15: note: Shadowed declaration sylfilter-0.8/libsylph/codeconv.c:2064:16: note: Shadow variable 2.18.0 sylfilter-0.8/libsylph/codeconv.c:2252:9: style: Variable 'mimesep_enc' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:2316:16: style: Variable 'mb_len' is assigned a value that is never used. [unreadVariable] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:2343:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_utf8_skip [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:2567:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:375:17: style: Variable 'h2z_tbl' can be declared as const array [constVariable] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:390:17: style: Variable 'dakuten_tbl' can be declared as const array [constVariable] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:399:17: style: Variable 'handakuten_tbl' can be declared as const array [constVariable] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:770:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:807:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:866:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/codeconv.c:905:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procheader.c:155:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procheader.c:200:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procheader.c:238:58: style: Parameter 'msginfo' can be declared as pointer to const [constParameterPointer] 2.18.0 sylfilter-0.8/libsylph/procheader.c:283:11: style: Variable 'header' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procheader.c:311:11: style: Variable 'header' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procheader.c:324:10: style: Variable 'header' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procheader.c:464:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procheader.c:69:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procheader.c:718:22: style: Variable 'cur' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procheader.c:800:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DATE_BAD_MONTH [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procheader.c:858:13: style: Variable 'lt' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procheader.c:859:9: style: Variable 'default_format' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procheader.c:863:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1093:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1112:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1146:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1177:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1277:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1336:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1400:10: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1424:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1470:12: style: Variable 'mime_type' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1486:13: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1523:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSCONFDIR [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmime.c:1643:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmime.c:192:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procmime.c:193:9: style: Variable 'boundary' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procmime.c:339:9: style: Variable 'enc' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procmime.c:803:15: style: Variable 'hp' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procmime.c:879:9: style: Variable 'boundary' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/procmime.c:943:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/procmsg.c:188:41: style: Parameter 'msginfo_a' can be declared as pointer to const [constParameterPointer] 2.18.0 sylfilter-0.8/libsylph/procmsg.c:188:61: style: Parameter 'msginfo_b' can be declared as pointer to const [constParameterPointer] 2.18.0 sylfilter-0.8/libsylph/procmsg.c:20:8: style: struct member '_MsgFlagInfo::msgnum' is never used. [unusedStructMember] 2.18.0 sylfilter-0.8/libsylph/procmsg.c:21:11: style: struct member '_MsgFlagInfo::flags' is never used. [unusedStructMember] 2.18.0 sylfilter-0.8/libsylph/procmsg.c:71:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:1043:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:1044:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:1085:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:1161:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:1267:37: style: Parameter 'orig' can be declared as pointer to const [constParameterPointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:1536:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:1565:10: style: Variable 's_op' is assigned a value that is never used. [unreadVariable] 2.18.0 sylfilter-0.8/libsylph/utils.c:1593:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:1645:15: style: Variable 'tmpp' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:1651:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:1744:9: style: Variable 'new_str' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:1754:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_utf8_skip [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:1764:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:1781:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_utf8_skip [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2000:9: style: Redundant initialization for 'p'. The initialized value is overwritten before it is read. [redundantInitialization] sylfilter-0.8/libsylph/utils.c:1995:17: note: p is initialized sylfilter-0.8/libsylph/utils.c:2000:9: note: p is overwritten 2.18.0 sylfilter-0.8/libsylph/utils.c:2020:9: style: Redundant initialization for 'p'. The initialized value is overwritten before it is read. [redundantInitialization] sylfilter-0.8/libsylph/utils.c:2015:17: note: p is initialized sylfilter-0.8/libsylph/utils.c:2020:9: note: p is overwritten 2.18.0 sylfilter-0.8/libsylph/utils.c:2039:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:2056:10: style: Variable 'field' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:2056:18: style: Variable 'value' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:2133:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2232:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2245:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2271:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2282:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2293:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2304:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2315:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2327:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2337:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2351:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2449:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2466:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2474:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2477:48: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:2486:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_REGULAR [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2489:45: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:2498:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2509:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2585:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2610:38: style: Condition 'buf[len-1]=='\n'' is always true [knownConditionTrueFalse] sylfilter-0.8/libsylph/utils.c:2607:20: note: Assuming that condition 'buf[len-1]!='\n'' is not redundant sylfilter-0.8/libsylph/utils.c:2610:38: note: Condition 'buf[len-1]=='\n'' is always true 2.18.0 sylfilter-0.8/libsylph/utils.c:2654:38: style:inconclusive: Function 'canonicalize_file_stream' argument 1 names different: declaration 'fp' definition 'src_fp'. [funcArgNamesDifferent] sylfilter-0.8/libsylph/utils.h:418:40: note: Function 'canonicalize_file_stream' argument 1 names different: declaration 'fp' definition 'src_fp'. sylfilter-0.8/libsylph/utils.c:2654:38: note: Function 'canonicalize_file_stream' argument 1 names different: declaration 'fp' definition 'src_fp'. 2.18.0 sylfilter-0.8/libsylph/utils.c:2677:38: style: Condition 'buf[len-1]=='\n'' is always true [knownConditionTrueFalse] sylfilter-0.8/libsylph/utils.c:2673:20: note: Assuming that condition 'buf[len-1]!='\n'' is not redundant sylfilter-0.8/libsylph/utils.c:2677:38: note: Condition 'buf[len-1]=='\n'' is always true 2.18.0 sylfilter-0.8/libsylph/utils.c:2684:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2736:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2786:9: style: Redundant initialization for 'p'. The initialized value is overwritten before it is read. [redundantInitialization] sylfilter-0.8/libsylph/utils.c:2782:17: note: p is initialized sylfilter-0.8/libsylph/utils.c:2786:9: note: p is overwritten 2.18.0 sylfilter-0.8/libsylph/utils.c:2845:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:2919:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:3036:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:312:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:3162:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:3177:3: error: Resource handle 'fd' freed twice. [doubleFree] sylfilter-0.8/libsylph/utils.c:3174:7: note: Resource handle 'fd' freed twice. sylfilter-0.8/libsylph/utils.c:3177:3: note: Resource handle 'fd' freed twice. 2.18.0 sylfilter-0.8/libsylph/utils.c:3195:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:3226:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:3260:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:3274:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:3370:29: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:3372:18: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:3372:24: style: Variable 'lt' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:3375:8: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:3378:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:3401:41: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:3403:18: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:3403:24: style: Variable 'lt' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:3407:8: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:3410:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:3446:13: style: Variable 'lt' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:3453:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:3455:9: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:396:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR [valueFlowBailoutIncompleteVar] 2.18.0 sylfilter-0.8/libsylph/utils.c:619:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:620:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:636:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:637:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] 2.18.0 sylfilter-0.8/libsylph/utils.c:714:7: style: Variable 'srcp' is assigned a value that is never used. [unreadVariable] 2.18.0 sylfilter-0.8/libsylph/utils.c:740:15: style: Variable 'srcp' is reassigned a value before the old one has been used. [redundantAssignment] sylfilter-0.8/libsylph/utils.c:738:7: note: srcp is assigned sylfilter-0.8/libsylph/utils.c:740:15: note: srcp is overwritten 2.18.0 sylfilter-0.8/libsylph/utils.c:762:18: style: Variable 'srcp' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:799:15: style: Variable 'srcp' is reassigned a value before the old one has been used. [redundantAssignment] sylfilter-0.8/libsylph/utils.c:797:7: note: srcp is assigned sylfilter-0.8/libsylph/utils.c:799:15: note: srcp is overwritten 2.18.0 sylfilter-0.8/libsylph/utils.c:825:7: style: Variable 'srcp' is assigned a value that is never used. [unreadVariable] 2.18.0 sylfilter-0.8/libsylph/utils.c:851:39: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:892:7: style: Variable 'srcp' is reassigned a value before the old one has been used. [redundantAssignment] sylfilter-0.8/libsylph/utils.c:875:7: note: srcp is assigned sylfilter-0.8/libsylph/utils.c:892:7: note: srcp is overwritten 2.18.0 sylfilter-0.8/libsylph/utils.c:961:22: style: Variable 'cur' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:986:9: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] 2.18.0 sylfilter-0.8/libsylph/utils.c:994:12: style: Variable 'addr' is assigned a value that is never used. [unreadVariable] head sylfilter-0.8/libsylph/utils.h:26:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head sylfilter-0.8/libsylph/utils.h:26:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] DONE