2025-11-23 08:51 ftp://ftp.de.debian.org/debian/pool/main/p/pmdk-convert/pmdk-convert_1.7.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 --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 44 43 elapsed-time: 0.6 0.4 head-timing-info: old-timing-info: head results: pmdk-convert-1.7/pmemobj_convert.h:64:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v1.c:53:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v2.c:54:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v1.c:85:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lane_layout [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v2.c:98:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_SHARED [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v2.c:139:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v3.c:55:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v3.c:99:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_SHARED [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v3.c:154:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable oob_header [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v3.c:186:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lane_layout [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v4.c:75:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_SHARED [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v4.c:119:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lane_layout [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmdk-convert.c:127:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmdk-convert.c:159:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmdk-convert.c:334:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmdk-convert.c:434:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MIN_VERSION_MAJOR [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmdk-convert.c:490:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION_PATCH [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmdk-convert.c:537:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmdk-convert.c:651:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v5.c:75:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAP_SHARED [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v5.c:123:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lane_layout [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v3.c:155:21: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] pmdk-convert-1.7/tests/clean.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmemobj_convert_v6.c:44:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/tests/clean.c:39:22: style: Parameter 'argv' can be declared as const array [constParameter] pmdk-convert-1.7/tests/create.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/tests/createW.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/tests/open.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/tests/openW.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/tests/transaction.c:122:1: error: There is an unknown macro here somewhere. Configuration is required. If TOID is a macro then please configure it. [unknownMacro] pmdk-convert-1.7/utils/check_license/check-license.c:110:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/utils/check_license/check-license.c:138:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/utils/check_license/check-license.c:242:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/utils/check_license/check-license.c:275:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/utils/check_license/check-license.c:314:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/utils/check_license/check-license.c:336:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/utils/check_license/check-license.c:505:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] pmdk-convert-1.7/pmdk-convert.c:568:3: error: Memory leak: poolset [memleak] pmdk-convert-1.7/pmdk-convert.c:567:13: warning: If memory allocation fails, then there is a possible null pointer dereference: poolset [nullPointerOutOfMemory] pmdk-convert-1.7/pmdk-convert.c:557:28: note: Assuming allocation function fails pmdk-convert-1.7/pmdk-convert.c:557:28: note: Assignment 'poolset=mmap(NULL,map_size,PROT_READ,MAP_PRIVATE|MAP_NORESERVE,fd,0)', assigned value is 0 pmdk-convert-1.7/pmdk-convert.c:567:13: note: Null pointer dereference pmdk-convert-1.7/pmdk-convert.c:409:7: style: Local variable 'ret' shadows outer variable [shadowVariable] pmdk-convert-1.7/pmdk-convert.c:395:6: note: Shadowed declaration pmdk-convert-1.7/pmdk-convert.c:409:7: note: Shadow variable pmdk-convert-1.7/pmdk-convert.c:126:8: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] pmdk-convert-1.7/utils/check_license/check-license.c:133:47: style: Parameter 'pattern' can be declared as pointer to const [constParameterPointer] pmdk-convert-1.7/utils/check_license/check-license.c:232:9: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] pmdk-convert-1.7/utils/check_license/check-license.c:333:8: style: Variable 'err_str' can be declared as pointer to const [constVariablePointer] diff: head pmdk-convert-1.7/tests/clean.c:39:22: style: Parameter 'argv' can be declared as const array [constParameter] DONE