2025-05-08 14:57 ftp://ftp.de.debian.org/debian/pool/main/u/utf8proc/utf8proc_2.9.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=icu --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 48 48 elapsed-time: 9.7 12.8 head-timing-info: old-timing-info: head results: utf8proc-2.9.0/bench/bench.c:15:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UTF8PROC_STABLE [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/bench/icu.c:25:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/bench/unistring.c:16:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UNINORM_NFKC [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/bench/unistring.c:50:14: style: Local variable 'i' shadows outer variable [shadowVariable] utf8proc-2.9.0/bench/unistring.c:15:7: note: Shadowed declaration utf8proc-2.9.0/bench/unistring.c:50:14: note: Shadow variable utf8proc-2.9.0/bench/icu.c:50:14: style: Local variable 'i' shadows outer variable [shadowVariable] utf8proc-2.9.0/bench/icu.c:14:7: note: Shadowed declaration utf8proc-2.9.0/bench/icu.c:50:14: note: Shadow variable utf8proc-2.9.0/bench/util.c:18:11: error: Resource leak: f [resourceLeak] utf8proc-2.9.0/test/case.c:25:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/test/charwidth.c:29:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/test/fuzz_main.c:17:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/test/fuzzer.c:50:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UTF8PROC_STRIPCC [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/test/iterate.c:24:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/test/iscase.c:32:13: style: Condition 'success' is always true [knownConditionTrueFalse] utf8proc-2.9.0/test/iscase.c:27:42: note: Assignment 'success=1', assigned value is 1 utf8proc-2.9.0/test/iscase.c:32:13: note: Condition 'success' is always true utf8proc-2.9.0/test/iscase.c:32:30: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] utf8proc-2.9.0/test/iscase.c:26:21: note: Assuming allocation function fails utf8proc-2.9.0/test/iscase.c:26:21: note: Assignment 'f=fopen(fname,"r")', assigned value is 0 utf8proc-2.9.0/test/iscase.c:32:30: note: Null pointer dereference utf8proc-2.9.0/test/iterate.c:28:9: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'ptrdiff_t {aka signed long}'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/iterate.c:11:41: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] utf8proc-2.9.0/test/graphemetest.c:63:9: style: The if condition is the same as the previous if condition [duplicateCondition] utf8proc-2.9.0/test/graphemetest.c:35:9: note: First condition utf8proc-2.9.0/test/graphemetest.c:63:9: note: Second condition utf8proc-2.9.0/test/graphemetest.c:49:13: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/graphemetest.c:96:13: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/graphemetest.c:101:5: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/graphemetest.c:46:29: warning: Uninitialized variable: utf8 [uninitvar] utf8proc-2.9.0/test/graphemetest.c:41:24: note: Assuming condition is false utf8proc-2.9.0/test/graphemetest.c:46:29: note: Uninitialized variable: utf8 utf8proc-2.9.0/test/tests.c:11:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/test/tests.c:54:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/test/printproperty.c:27:9: warning: %d in format string (no. 17) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/printproperty.c:27:9: warning: %d in format string (no. 18) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/printproperty.c:27:9: warning: %d in format string (no. 19) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/printproperty.c:27:9: warning: %d in format string (no. 20) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/printproperty.c:27:9: warning: %d in format string (no. 21) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/printproperty.c:27:9: warning: %d in format string (no. 22) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/tests.c:11:11: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/valid.c:15:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/test/normtest.c:22:16: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/normtest.c:26:16: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/normtest.c:61:6: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] utf8proc-2.9.0/test/normtest.c:34:18: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] utf8proc-2.9.0/utf8proc.c:584:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] utf8proc-2.9.0/utf8proc.c:689:43: warning: Either the condition 'starter_property->comb_index<0x8000' is redundant or the array 'utf8proc_combinations[5414]' is accessed at index 32767, which is out of bounds. [arrayIndexOutOfBoundsCond] utf8proc-2.9.0/utf8proc.c:684:42: note: Assuming that condition 'starter_property->comb_index<0x8000' is not redundant utf8proc-2.9.0/utf8proc.c:687:38: note: Assignment 'sidx=starter_property->comb_index', assigned value is 32767 utf8proc-2.9.0/utf8proc.c:689:43: note: Array index out of bounds utf8proc-2.9.0/utf8proc.c:126:75: style:inconclusive: Function 'utf8proc_iterate' argument 3 names different: declaration 'codepoint_ref' definition 'dst'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:441:126: note: Function 'utf8proc_iterate' argument 3 names different: declaration 'codepoint_ref' definition 'dst'. utf8proc-2.9.0/utf8proc.c:126:75: note: Function 'utf8proc_iterate' argument 3 names different: declaration 'codepoint_ref' definition 'dst'. utf8proc-2.9.0/utf8proc.c:173:76: style:inconclusive: Function 'utf8proc_codepoint_valid' argument 1 names different: declaration 'codepoint' definition 'uc'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:449:76: note: Function 'utf8proc_codepoint_valid' argument 1 names different: declaration 'codepoint' definition 'uc'. utf8proc-2.9.0/utf8proc.c:173:76: note: Function 'utf8proc_codepoint_valid' argument 1 names different: declaration 'codepoint' definition 'uc'. utf8proc-2.9.0/utf8proc.c:177:75: style:inconclusive: Function 'utf8proc_encode_char' argument 1 names different: declaration 'codepoint' definition 'uc'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:460:75: note: Function 'utf8proc_encode_char' argument 1 names different: declaration 'codepoint' definition 'uc'. utf8proc-2.9.0/utf8proc.c:177:75: note: Function 'utf8proc_encode_char' argument 1 names different: declaration 'codepoint' definition 'uc'. utf8proc-2.9.0/utf8proc.c:242:86: style:inconclusive: Function 'utf8proc_get_property' argument 1 names different: declaration 'codepoint' definition 'uc'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:474:86: note: Function 'utf8proc_get_property' argument 1 names different: declaration 'codepoint' definition 'uc'. utf8proc-2.9.0/utf8proc.c:242:86: note: Function 'utf8proc_get_property' argument 1 names different: declaration 'codepoint' definition 'uc'. utf8proc-2.9.0/utf8proc.c:346:22: style:inconclusive: Function 'utf8proc_grapheme_break_stateful' argument 1 names different: declaration 'codepoint1' definition 'c1'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:617:22: note: Function 'utf8proc_grapheme_break_stateful' argument 1 names different: declaration 'codepoint1' definition 'c1'. utf8proc-2.9.0/utf8proc.c:346:22: note: Function 'utf8proc_grapheme_break_stateful' argument 1 names different: declaration 'codepoint1' definition 'c1'. utf8proc-2.9.0/utf8proc.c:346:43: style:inconclusive: Function 'utf8proc_grapheme_break_stateful' argument 2 names different: declaration 'codepoint2' definition 'c2'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:617:51: note: Function 'utf8proc_grapheme_break_stateful' argument 2 names different: declaration 'codepoint2' definition 'c2'. utf8proc-2.9.0/utf8proc.c:346:43: note: Function 'utf8proc_grapheme_break_stateful' argument 2 names different: declaration 'codepoint2' definition 'c2'. utf8proc-2.9.0/utf8proc.c:359:22: style:inconclusive: Function 'utf8proc_grapheme_break' argument 1 names different: declaration 'codepoint1' definition 'c1'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:624:22: note: Function 'utf8proc_grapheme_break' argument 1 names different: declaration 'codepoint1' definition 'c1'. utf8proc-2.9.0/utf8proc.c:359:22: note: Function 'utf8proc_grapheme_break' argument 1 names different: declaration 'codepoint1' definition 'c1'. utf8proc-2.9.0/utf8proc.c:359:43: style:inconclusive: Function 'utf8proc_grapheme_break' argument 2 names different: declaration 'codepoint2' definition 'c2'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:624:51: note: Function 'utf8proc_grapheme_break' argument 2 names different: declaration 'codepoint2' definition 'c2'. utf8proc-2.9.0/utf8proc.c:359:43: note: Function 'utf8proc_grapheme_break' argument 2 names different: declaration 'codepoint2' definition 'c2'. utf8proc-2.9.0/utf8proc.c:431:60: style:inconclusive: Function 'utf8proc_charwidth' argument 1 names different: declaration 'codepoint' definition 'c'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:668:60: note: Function 'utf8proc_charwidth' argument 1 names different: declaration 'codepoint' definition 'c'. utf8proc-2.9.0/utf8proc.c:431:60: note: Function 'utf8proc_charwidth' argument 1 names different: declaration 'codepoint' definition 'c'. utf8proc-2.9.0/utf8proc.c:435:75: style:inconclusive: Function 'utf8proc_category' argument 1 names different: declaration 'codepoint' definition 'c'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:674:75: note: Function 'utf8proc_category' argument 1 names different: declaration 'codepoint' definition 'c'. utf8proc-2.9.0/utf8proc.c:435:75: note: Function 'utf8proc_category' argument 1 names different: declaration 'codepoint' definition 'c'. utf8proc-2.9.0/utf8proc.c:439:74: style:inconclusive: Function 'utf8proc_category_string' argument 1 names different: declaration 'codepoint' definition 'c'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:680:74: note: Function 'utf8proc_category_string' argument 1 names different: declaration 'codepoint' definition 'c'. utf8proc-2.9.0/utf8proc.c:439:74: note: Function 'utf8proc_category_string' argument 1 names different: declaration 'codepoint' definition 'c'. utf8proc-2.9.0/utf8proc.c:448:78: style:inconclusive: Function 'utf8proc_decompose_char' argument 1 names different: declaration 'codepoint' definition 'uc'. [funcArgNamesDifferent] utf8proc-2.9.0/utf8proc.h:506:20: note: Function 'utf8proc_decompose_char' argument 1 names different: declaration 'codepoint' definition 'uc'. utf8proc-2.9.0/utf8proc.c:448:78: note: Function 'utf8proc_decompose_char' argument 1 names different: declaration 'codepoint' definition 'uc'. diff: 2.17.0 utf8proc-2.9.0/utf8proc.c:689:43: warning: Either the condition 'starter_property->comb_index<0x8000' is redundant or the array 'utf8proc_combinations[5414]' is accessed at index 32767, which is out of bounds. [arrayIndexOutOfBoundsCond] utf8proc-2.9.0/utf8proc.c:684:42: note: Assuming that condition 'starter_property->comb_index<0x8000' is not redundant utf8proc-2.9.0/utf8proc.c:687:20: note: sidx is assigned 'starter_property->comb_index' here. utf8proc-2.9.0/utf8proc.c:689:43: note: Array index out of bounds head utf8proc-2.9.0/utf8proc.c:689:43: warning: Either the condition 'starter_property->comb_index<0x8000' is redundant or the array 'utf8proc_combinations[5414]' is accessed at index 32767, which is out of bounds. [arrayIndexOutOfBoundsCond] utf8proc-2.9.0/utf8proc.c:684:42: note: Assuming that condition 'starter_property->comb_index<0x8000' is not redundant utf8proc-2.9.0/utf8proc.c:687:38: note: Assignment 'sidx=starter_property->comb_index', assigned value is 32767 utf8proc-2.9.0/utf8proc.c:689:43: note: Array index out of bounds DONE