2026-05-27 18:46 ftp://ftp.de.debian.org/debian/pool/main/libf/libfiu/libfiu_1.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=python --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 -j8 platform: Linux-6.17.0-29-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 6e46c6b (2026-05-27 18:39:55 +0200) count: 40 39 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: libfiu-1.2/libfiu/backtrace.c:37:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Sym [valueFlowBailoutIncompleteVar] libfiu-1.2/libfiu/backtrace.c:52:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_DEFAULT [valueFlowBailoutIncompleteVar] libfiu-1.2/bindings/python/fiu_ll.c:145:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] libfiu-1.2/bindings/python/fiu_ll.c:196:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] libfiu-1.2/bindings/python/fiu_ll.c:235:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIU_ONETIME [valueFlowBailoutIncompleteVar] libfiu-1.2/preload/posix/codegen.c:32:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBC_SONAME [valueFlowBailoutIncompleteVar] libfiu-1.2/bindings/python/fiu_ll.c:53:12: style: Local variable 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed function libfiu-1.2/bindings/python/fiu_ll.c:53:12: note: Shadow local variable libfiu-1.2/bindings/python/fiu_ll.c:69:12: style: Local variable 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed function libfiu-1.2/bindings/python/fiu_ll.c:69:12: note: Shadow local variable libfiu-1.2/bindings/python/fiu_ll.c:83:69: style: Argument 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed function libfiu-1.2/bindings/python/fiu_ll.c:83:69: note: Shadow argument libfiu-1.2/bindings/python/fiu_ll.c:164:12: style: Local variable 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed function libfiu-1.2/bindings/python/fiu_ll.c:164:12: note: Shadow local variable libfiu-1.2/bindings/python/fiu_ll.c:21:17: style: Variable 'err' can be declared as pointer to const [constVariablePointer] libfiu-1.2/bindings/python/fiu_ll.c:37:53: style: Parameter 'args' can be declared as pointer to const. However it seems that 'failinfo' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libfiu-1.2/bindings/python/fiu_ll.c:211:31: note: You might need to cast the function pointer here libfiu-1.2/bindings/python/fiu_ll.c:37:53: note: Parameter 'args' can be declared as pointer to const libfiu-1.2/libfiu/fiu-rc.c:209:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libfiu-1.2/libfiu/fiu-rc.c:246:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libfiu-1.2/libfiu/fiu-rc.c:305:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libfiu-1.2/preload/posix/modules/posix.custom.c:99:1: error: There is an unknown macro here somewhere. Configuration is required. If mkwrap_body_errno is a macro then please configure it. [unknownMacro] libfiu-1.2/preload/run/run.c:42:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libfiu-1.2/libfiu/backtrace.c:37:12: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] libfiu-1.2/libfiu/backtrace.c:100:8: style: Variable 'start' can be declared as pointer to const [constVariablePointer] libfiu-1.2/libfiu/backtrace.c:101:8: style: Variable 'end' can be declared as pointer to const [constVariablePointer] libfiu-1.2/preload/run/run.c:13:23: style: Variable 'fiu_enable_env' can be declared as pointer to const [constVariablePointer] libfiu-1.2/tests/test-ferror.c:16:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] libfiu-1.2/libfiu/fiu-rc.c:302:11: warning: If memory allocation fails, then there is a possible null pointer dereference: npipe_path_in [nullPointerOutOfMemory] libfiu-1.2/libfiu/fiu-rc.c:299:24: note: Assuming allocation function fails libfiu-1.2/libfiu/fiu-rc.c:299:24: note: Assignment 'npipe_path_in=malloc(path_len)', assigned value is 0 libfiu-1.2/libfiu/fiu-rc.c:302:11: note: Null pointer dereference libfiu-1.2/libfiu/fiu-rc.c:303:11: warning: If memory allocation fails, then there is a possible null pointer dereference: npipe_path_out [nullPointerOutOfMemory] libfiu-1.2/libfiu/fiu-rc.c:300:25: note: Assuming allocation function fails libfiu-1.2/libfiu/fiu-rc.c:300:25: note: Assignment 'npipe_path_out=malloc(path_len)', assigned value is 0 libfiu-1.2/libfiu/fiu-rc.c:303:11: note: Null pointer dereference libfiu-1.2/libfiu/fiu.c:246:8: style: Variable 'static_seed_from_env' can be declared as pointer to const [constVariablePointer] libfiu-1.2/libfiu/fiu-rc.c:90:9: style: Variable 'tok' can be declared as pointer to const [constVariablePointer] libfiu-1.2/libfiu/fiu-rc.c:112:8: style: Variable 'fp_name' can be declared as pointer to const [constVariablePointer] libfiu-1.2/libfiu/fiu-rc.c:117:8: style: Variable 'func_name' can be declared as pointer to const [constVariablePointer] libfiu-1.2/tests/test-ferror.c:24:3: error: Resource leak: fp [resourceLeak] libfiu-1.2/tests/test-ferror.c:31:3: error: Resource leak: fp [resourceLeak] libfiu-1.2/tests/test-ferror.c:38:3: error: Resource leak: fp [resourceLeak] libfiu-1.2/tests/test-ferror.c:46:3: error: Resource leak: fp [resourceLeak] libfiu-1.2/tests/test-ferror.c:18:26: warning: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] libfiu-1.2/tests/test-ferror.c:11:18: note: Assuming allocation function fails libfiu-1.2/tests/test-ferror.c:11:18: note: Assignment 'fp=fopen("/dev/zero","r")', assigned value is 0 libfiu-1.2/tests/test-ferror.c:18:26: note: Null pointer dereference libfiu-1.2/libfiu/wtable.c:166:59: style: Parameter 't' can be declared as pointer to const [constParameterPointer] libfiu-1.2/libfiu/hash.c:37:17: warning: If memory allocation fails, then there is a possible null pointer dereference: (uint32_t*)key [nullPointerOutOfMemory] libfiu-1.2/libfiu/hash.c:279:30: note: Assuming allocation function fails libfiu-1.2/libfiu/hash.c:279:30: note: Calling function '_hash_set', 2nd argument 'strdup(key)' value is 0 libfiu-1.2/libfiu/hash.c:180:20: note: Calling function 'murmurhash2', 1st argument 'key' value is 0 libfiu-1.2/libfiu/hash.c:37:17: note: Null pointer dereference libfiu-1.2/libfiu/hash.c:180:32: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] libfiu-1.2/libfiu/hash.c:279:30: note: Assuming allocation function fails libfiu-1.2/libfiu/hash.c:279:30: note: Calling function '_hash_set', 2nd argument 'strdup(key)' value is 0 libfiu-1.2/libfiu/hash.c:180:32: note: Null pointer dereference libfiu-1.2/libfiu/hash.c:46:7: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] libfiu-1.2/libfiu/hash.c:279:30: note: Assuming allocation function fails libfiu-1.2/libfiu/hash.c:279:30: note: Calling function '_hash_set', 2nd argument 'strdup(key)' value is 0 libfiu-1.2/libfiu/hash.c:180:20: note: Calling function 'murmurhash2', 1st argument 'key' value is 0 libfiu-1.2/libfiu/hash.c:46:7: note: Null pointer addition libfiu-1.2/libfiu/hash.c:94:35: style: Parameter 'value' can be declared as pointer to const. However it seems that 'dumb_destructor' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libfiu-1.2/libfiu/hash.c:118:16: note: You might need to cast the function pointer here libfiu-1.2/libfiu/hash.c:94:35: note: Parameter 'value' can be declared as pointer to const libfiu-1.2/libfiu/hash.c:142:29: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] libfiu-1.2/libfiu/hash.c:145:16: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] diff: 2.20.0 libfiu-1.2/bindings/python/fiu_ll.c:164:12: style: Local variable 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed declaration libfiu-1.2/bindings/python/fiu_ll.c:164:12: note: Shadow variable head libfiu-1.2/bindings/python/fiu_ll.c:164:12: style: Local variable 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed function libfiu-1.2/bindings/python/fiu_ll.c:164:12: note: Shadow local variable 2.20.0 libfiu-1.2/bindings/python/fiu_ll.c:53:12: style: Local variable 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed declaration libfiu-1.2/bindings/python/fiu_ll.c:53:12: note: Shadow variable head libfiu-1.2/bindings/python/fiu_ll.c:53:12: style: Local variable 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed function libfiu-1.2/bindings/python/fiu_ll.c:53:12: note: Shadow local variable 2.20.0 libfiu-1.2/bindings/python/fiu_ll.c:69:12: style: Local variable 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed declaration libfiu-1.2/bindings/python/fiu_ll.c:69:12: note: Shadow variable head libfiu-1.2/bindings/python/fiu_ll.c:69:12: style: Local variable 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed function libfiu-1.2/bindings/python/fiu_ll.c:69:12: note: Shadow local variable head libfiu-1.2/bindings/python/fiu_ll.c:83:69: style: Argument 'failinfo' shadows outer function [shadowFunction] libfiu-1.2/bindings/python/fiu_ll.c:37:18: note: Shadowed function libfiu-1.2/bindings/python/fiu_ll.c:83:69: note: Shadow argument DONE