2024-04-22 23:53 ftp://ftp.de.debian.org/debian/pool/main/u/unrtf/unrtf_0.21.10-clean.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: bd7136d (2024-04-22 21:34:48 +0200) count: 174 174 elapsed-time: 9.5 9.1 head-timing-info: old-timing-info: head results: unrtf-0.21.10/Windows/unrtf_w.c:85:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] unrtf-0.21.10/Windows/unrtf_w.c:101:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] unrtf-0.21.10/Windows/unrtf_w.c:87:22: style: Variable 'length' is assigned a value that is never used. [unreadVariable] unrtf-0.21.10/src/attr.c:195:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/attr.c:359:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/attr.c:538:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/attr.c:626:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/attr.c:663:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/attr.c:917:50: style: Redundant condition: string[i]=='%'. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] unrtf-0.21.10/src/attr.c:937:26: style: Redundant condition: string[i]=='\\'. 'string[i]!='\\' || (string[i]=='\\' && string[i+1]!='%')' is equivalent to 'string[i]!='\\' || string[i+1]!='%'' [redundantCondition] unrtf-0.21.10/src/attr.c:939:26: style: Redundant condition: string[i]=='%'. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] unrtf-0.21.10/src/attr.c:977:49: style: Redundant condition: string[i]=='%'. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] unrtf-0.21.10/src/attr.c:996:26: style: Redundant condition: string[i]=='\\'. 'string[i]!='\\' || (string[i]=='\\' && string[i+1]!='%')' is equivalent to 'string[i]!='\\' || string[i+1]!='%'' [redundantCondition] unrtf-0.21.10/src/attr.c:998:26: style: Redundant condition: string[i]=='%'. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] unrtf-0.21.10/src/attr.c:104:33: style: Parameter 'stack' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/attr.c:352:46: style: Parameter 'param' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/attr.c:905:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] unrtf-0.21.10/src/attr.c:964:23: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/attr.c:520:8: style: Unused variable: oldparam [unusedVariable] unrtf-0.21.10/src/convert.c:228:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:258:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:317:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:678:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:821:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:918:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:956:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:1026:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:1285:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:1465:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:1619:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:1723:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:1980:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2000:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2022:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2043:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2065:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2087:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2109:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2130:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2152:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2174:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2195:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2217:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2238:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2597:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2781:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:2800:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:3075:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:3692:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:3755:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:3847:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:3869:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:3930:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:3972:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:4009:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:4045:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:4134:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:4555:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/convert.c:1232:10: style: Condition 'nextword' is always true [knownConditionTrueFalse] unrtf-0.21.10/src/convert.c:2586:11: style: Condition '!done' is always true [knownConditionTrueFalse] unrtf-0.21.10/src/convert.c:2562:15: note: Assignment 'done=0', assigned value is 0 unrtf-0.21.10/src/convert.c:2586:11: note: Condition '!done' is always true unrtf-0.21.10/src/convert.c:1498:19: style: Local variable 's' shadows outer variable [shadowVariable] unrtf-0.21.10/src/convert.c:1473:16: note: Shadowed declaration unrtf-0.21.10/src/convert.c:1498:19: note: Shadow variable unrtf-0.21.10/src/convert.c:1557:15: style: Local variable 'w4' shadows outer variable [shadowVariable] unrtf-0.21.10/src/convert.c:1500:13: note: Shadowed declaration unrtf-0.21.10/src/convert.c:1557:15: note: Shadow variable unrtf-0.21.10/src/convert.c:1558:21: style: Local variable 's4' shadows outer variable [shadowVariable] unrtf-0.21.10/src/convert.c:1499:19: note: Shadowed declaration unrtf-0.21.10/src/convert.c:1558:21: note: Shadow variable unrtf-0.21.10/src/convert.c:3055:17: style: Local variable 'param' shadows outer argument [shadowArgument] unrtf-0.21.10/src/convert.c:3047:69: note: Shadowed declaration unrtf-0.21.10/src/convert.c:3055:17: note: Shadow variable unrtf-0.21.10/src/convert.c:444:13: style: Variable 'e' can be declared as pointer to const [constVariablePointer] unrtf-0.21.10/src/convert.c:1663:16: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_deff' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3428:12: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:1663:16: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:1740:17: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_plain' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3522:14: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:1740:17: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:1754:16: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_fnil' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3450:12: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:1754:16: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:1769:18: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_froman' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3452:14: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:1769:18: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:1784:18: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_fswiss' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3455:14: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:1784:18: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:1799:19: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_fmodern' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3449:15: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:1799:19: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:1814:19: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_fscript' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3454:15: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:1814:19: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:1828:18: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_fdecor' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3448:14: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:1828:18: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:1842:17: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_ftech' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3456:13: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:1842:17: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2253:28: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_intbl' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3479:14: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2253:28: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2270:29: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_ulnone' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3583:15: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2270:29: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2512:26: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_rtf' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3543:12: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2512:26: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2524:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_shppict' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3559:16: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2524:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2641:33: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_nosupersub' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3503:19: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2641:33: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2762:24: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_s' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3548:9: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2762:24: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2839:27: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_ansi' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3355:13: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2839:27: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2852:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_ansicpg' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3356:16: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2852:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2866:25: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_pc' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3516:11: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2866:25: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2879:26: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_pca' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3517:12: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2879:26: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2892:26: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_mac' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3497:12: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2892:26: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2937:29: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_header' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3467:14: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2937:29: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2949:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_headerl' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3469:15: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2949:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2961:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_headerr' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3470:15: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2961:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2973:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_headerf' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3468:15: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2973:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2985:29: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_footer' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3458:14: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2985:29: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:2997:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_footerl' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3460:15: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:2997:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3009:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_footerr' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3461:15: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3009:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3021:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_footerf' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3459:15: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3021:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3033:29: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_ignore' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3557:19: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3033:29: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3073:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_blipuid' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3364:16: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3073:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3099:27: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_pict' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3519:13: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3099:27: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3113:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_picprop' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3520:16: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3113:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3126:26: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_bin' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3363:12: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3126:26: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3139:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_macpict' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3498:16: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3139:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3152:31: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_jpegblip' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3485:17: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3152:31: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3165:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_pngblip' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3523:16: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3165:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3178:30: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_emfblip' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3525:16: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3178:30: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3191:33: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_pnmetafile' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3524:19: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3191:33: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3204:32: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_wmetafile' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3601:18: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3204:32: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3251:35: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_wbmbitspixel' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3600:21: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3251:35: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3267:27: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_picw' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3521:13: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3267:27: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:3283:27: style: Parameter 'w' can be declared as pointer to const. However it seems that 'cmd_pich' is a callback function, if 'w' is declared with const you might also need to cast function pointer(s). [constParameterCallback] unrtf-0.21.10/src/convert.c:3518:13: note: You might need to cast the function pointer here unrtf-0.21.10/src/convert.c:3283:27: note: Parameter 'w' can be declared as pointer to const unrtf-0.21.10/src/convert.c:4189:14: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] unrtf-0.21.10/src/convert.c:682:6: style: Unused variable: l [unusedVariable] unrtf-0.21.10/src/convert.c:4303:7: style: Variable 's' is assigned a value that is never used. [unreadVariable] unrtf-0.21.10/src/convert.c:4315:7: style: Variable 's' is assigned a value that is never used. [unreadVariable] unrtf-0.21.10/src/convert.c:4320:7: style: Variable 's' is assigned a value that is never used. [unreadVariable] unrtf-0.21.10/src/error.c:69:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/error.c:86:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/error.c:104:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/error.c:83:21: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/error.c:102:23: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/hash.c:124:9: warning: Either the condition '!hi' is redundant or there is possible null pointer dereference: hi. [nullPointerRedundantCheck] unrtf-0.21.10/src/hash.c:120:6: note: Assuming that condition '!hi' is not redundant unrtf-0.21.10/src/hash.c:124:9: note: Null pointer dereference unrtf-0.21.10/src/hash.c:125:2: warning: Either the condition '!hi' is redundant or there is possible null pointer dereference: hi. [nullPointerRedundantCheck] unrtf-0.21.10/src/hash.c:120:6: note: Assuming that condition '!hi' is not redundant unrtf-0.21.10/src/hash.c:125:2: note: Null pointer dereference unrtf-0.21.10/src/hash.c:112:20: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/main.c:120:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/main.c:152:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PKGDATADIR [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/main.c:352:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] unrtf-0.21.10/src/main.c:115:18: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/main.c:146:8: style: Variable 'path' can be declared as pointer to const [constVariablePointer] unrtf-0.21.10/src/malloc.c:93:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/malloc.c:150:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/malloc.c:159:9: warning: Either the condition '!ptr' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] unrtf-0.21.10/src/malloc.c:154:6: note: Assuming that condition '!ptr' is not redundant unrtf-0.21.10/src/malloc.c:159:9: note: Null pointer dereference unrtf-0.21.10/src/malloc.c:145:17: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/my_iconv.c:82:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/my_iconv.c:135:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/my_iconv.c:198:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/my_iconv.c:210:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/my_iconv.c:221:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/my_iconv.c:69:3: error: Memory leak: obuf [memleak] unrtf-0.21.10/src/my_iconv.c:35:14: style: Variable 'ocp0' can be declared as pointer to const [constVariablePointer] unrtf-0.21.10/src/output.c:107:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/output.c:126:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iconv_t [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/output.c:241:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/output.c:309:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/output.c:536:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/output.c:138:34: style: Condition 'ch<256' is always true [knownConditionTrueFalse] unrtf-0.21.10/src/output.c:132:19: note: Assuming that condition 'ch>255' is not redundant unrtf-0.21.10/src/output.c:138:34: note: Condition 'ch<256' is always true unrtf-0.21.10/src/output.c:176:57: style: Condition 'my_iconv(m_desc,&icp,&inbytes,&ocp,&outbytes)==-1' is always false [knownConditionTrueFalse] unrtf-0.21.10/src/output.c:232:50: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/output.c:758:48: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/parse.c:122:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/parse.c:277:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/parse.c:505:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/parse.c:348:9: style: Condition '!expand_word_buffer()' is always false [knownConditionTrueFalse] unrtf-0.21.10/src/parse.c:348:28: note: Calling function 'expand_word_buffer' returns 1 unrtf-0.21.10/src/parse.c:348:9: note: Condition '!expand_word_buffer()' is always false unrtf-0.21.10/src/parse.c:357:9: style: Condition '!expand_word_buffer()' is always false [knownConditionTrueFalse] unrtf-0.21.10/src/parse.c:357:28: note: Calling function 'expand_word_buffer' returns 1 unrtf-0.21.10/src/parse.c:357:9: note: Condition '!expand_word_buffer()' is always false unrtf-0.21.10/src/parse.c:366:9: style: Condition '!expand_word_buffer()' is always false [knownConditionTrueFalse] unrtf-0.21.10/src/parse.c:366:28: note: Calling function 'expand_word_buffer' returns 1 unrtf-0.21.10/src/parse.c:366:9: note: Condition '!expand_word_buffer()' is always false unrtf-0.21.10/src/parse.c:454:12: style: Condition 'ch!=' '' is always true [knownConditionTrueFalse] unrtf-0.21.10/src/parse.c:465:8: style: Condition '!expand_word_buffer()' is always false [knownConditionTrueFalse] unrtf-0.21.10/src/parse.c:465:27: note: Calling function 'expand_word_buffer' returns 1 unrtf-0.21.10/src/parse.c:465:8: note: Condition '!expand_word_buffer()' is always false unrtf-0.21.10/src/parse.c:250:9: warning: Either the condition '!new_ptr' is redundant or there is possible null pointer dereference: new_ptr. [nullPointerRedundantCheck] unrtf-0.21.10/src/parse.c:245:6: note: Assuming that condition '!new_ptr' is not redundant unrtf-0.21.10/src/parse.c:250:9: note: Null pointer dereference unrtf-0.21.10/src/parse.c:526:4: warning: Either the condition '!new_word' is redundant or there is possible null pointer dereference: new_word. [nullPointerRedundantCheck] unrtf-0.21.10/src/parse.c:520:8: note: Assuming that condition '!new_word' is not redundant unrtf-0.21.10/src/parse.c:526:4: note: Null pointer dereference unrtf-0.21.10/src/path.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/path.c:123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/path.c:139:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/path.c:24:46: style: Parameter 'suffix' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/unicode.c:133:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/user.c:251:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/user.c:296:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/user.c:139:46: style: Redundant condition: c3=='\\'. 'c3!='\\' || (c3=='\\' && c4=='\\')' is equivalent to 'c3!='\\' || c4=='\\'' [redundantCondition] unrtf-0.21.10/src/user.c:64:3: error: Memory leak: f [memleak] unrtf-0.21.10/src/user.c:271:40: style:inconclusive: Function 'user_init' argument 2 names different: declaration 'tags_file_path' definition 'definitions_file_path'. [funcArgNamesDifferent] unrtf-0.21.10/src/user.h:163:64: note: Function 'user_init' argument 2 names different: declaration 'tags_file_path' definition 'definitions_file_path'. unrtf-0.21.10/src/user.c:271:40: note: Function 'user_init' argument 2 names different: declaration 'tags_file_path' definition 'definitions_file_path'. unrtf-0.21.10/src/user.c:58:16: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/user.c:116:41: style: Variable 'unicode_char' can be declared as pointer to const [constVariablePointer] unrtf-0.21.10/src/util.c:109:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/word.c:95:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/word.c:145:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/word.c:205:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] unrtf-0.21.10/src/word.c:284:11: style: Condition 's!=NULL' is always true [knownConditionTrueFalse] unrtf-0.21.10/src/word.c:93:19: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] unrtf-0.21.10/src/word.c:248:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] diff: DONE