2025-11-24 17:46 ftp://ftp.de.debian.org/debian/pool/main/w/winregfs/winregfs_0.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-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: cb76e52 (2025-11-22 14:47:37 +0100) count: 72 72 elapsed-time: 1.0 1.2 head-timing-info: old-timing-info: head results: winregfs-0.7/fsck_winregfs.c:154:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] winregfs-0.7/fsck_winregfs.c:91:2: warning:inconclusive: The buffer 'keypath' may not be null-terminated after the call to strncpy(). [terminateStrncpy] winregfs-0.7/fsck_winregfs.c:109:4: warning:inconclusive: The buffer 'filename' may not be null-terminated after the call to strncpy(). [terminateStrncpy] winregfs-0.7/fsck_winregfs.c:130:4: warning:inconclusive: The buffer 'filename' may not be null-terminated after the call to strncpy(). [terminateStrncpy] winregfs-0.7/fsck_winregfs.c:169:2: warning:inconclusive: The buffer 'file' may not be null-terminated after the call to strncpy(). [terminateStrncpy] winregfs-0.7/fsck_winregfs.c:79:17: style: Variable 'key' can be declared as pointer to const [constVariablePointer] winregfs-0.7/fsck_winregfs.c:83:42: style: Variable 'error_count' is assigned a value that is never used. [unreadVariable] winregfs-0.7/fsck_winregfs.c:112:16: style: Variable 'error_count' is assigned a value that is never used. [unreadVariable] winregfs-0.7/winregfs.c:196:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENAMETOOLONG [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:229:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENAMETOOLONG [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:294:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:422:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:479:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:492:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:519:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:639:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:712:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:788:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:915:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:1112:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:1172:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:1214:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:1256:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable private_data [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:1384:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] winregfs-0.7/winregfs.c:614:30: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] winregfs-0.7/winregfs.c:52:40: style: Parameter 'timestamp' can be declared as pointer to const [constParameterPointer] winregfs-0.7/winregfs.c:125:37: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] winregfs-0.7/winregfs.c:784:8: style: Variable 'sptr' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:2608:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] winregfs-0.7/ntreg.c:1413:20: style: Condition 'keydataptr' is always true [knownConditionTrueFalse] winregfs-0.7/ntreg.c:2103:90: style: Condition 'onk->len_name>namlen' is always false [knownConditionTrueFalse] winregfs-0.7/ntreg.c:2103:34: note: Assuming that condition 'onk->len_name==namlen' is not redundant winregfs-0.7/ntreg.c:2103:90: note: Condition 'onk->len_name>namlen' is always false winregfs-0.7/ntreg.c:1780:7: error: Memory leak: tmplist [memleak] winregfs-0.7/ntreg.c:2585:5: error: Memory leak: hdesc [memleak] winregfs-0.7/ntreg.c:144:13: warning: If memory allocation fails, then there is a possible null pointer dereference: str_new [nullPointerOutOfMemory] winregfs-0.7/ntreg.c:143:29: note: Assuming allocation function fails winregfs-0.7/ntreg.c:143:15: note: Assignment 'str_new=(char*)malloc(len)', assigned value is 0 winregfs-0.7/ntreg.c:144:13: note: Null pointer dereference winregfs-0.7/ntreg.c:1380:3: warning: Either the condition 'kr' is redundant or there is possible null pointer dereference: kr. [nullPointerRedundantCheck] winregfs-0.7/ntreg.c:1413:14: note: Assuming that condition 'kr' is not redundant winregfs-0.7/ntreg.c:1380:3: note: Null pointer dereference winregfs-0.7/ntreg.c:1855:13: style: Variable 'oldli' is reassigned a value before the old one has been used. [redundantAssignment] winregfs-0.7/ntreg.c:1851:8: note: oldli is assigned winregfs-0.7/ntreg.c:1855:13: note: oldli is overwritten winregfs-0.7/ntreg.c:1856:13: style: Variable 'oldlf' is reassigned a value before the old one has been used. [redundantAssignment] winregfs-0.7/ntreg.c:1852:8: note: oldlf is assigned winregfs-0.7/ntreg.c:1856:13: note: oldlf is overwritten winregfs-0.7/ntreg.c:1886:2: style: Variable 'oldlf' is assigned an expression that holds the same value. [redundantAssignment] winregfs-0.7/ntreg.c:1856:13: note: oldlf is assigned '(struct lf_key*)(hdesc->buffer+oldlfofs+0x1004)' here. winregfs-0.7/ntreg.c:1886:2: note: Variable 'oldlf' is assigned an expression that holds the same value. winregfs-0.7/ntreg.c:341:41: style: Parameter 'hdesc' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:344:21: style: Variable 'h' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:371:39: style: Parameter 'hdesc' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:375:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:412:21: style: Variable 'h' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:624:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:727:18: style: Variable 'key' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:828:35: style: Parameter 'hdesc' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:832:18: style: Variable 'key' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:834:12: style: Variable 'vlistkey' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:920:18: style: Variable 'key' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:969:18: style: Variable 'vkkey' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:971:12: style: Variable 'vlistkey' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:1217:54: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:1219:18: style: Variable 'vkkey' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:1237:54: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:1256:53: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:1258:18: style: Variable 'vkkey' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:1296:56: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:1351:18: style: Variable 'db' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:1424:51: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:1457:18: style: Variable 'db' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:1515:56: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:1702:18: style: Variable 'vk' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:1730:52: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:1733:12: style: Variable 'vlistkey' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:1805:61: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:1814:32: style: Variable 'onk' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:2289:18: style: Variable 'db' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:2552:30: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] winregfs-0.7/ntreg.c:2560:21: style: Variable 'p' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:2561:23: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:2562:18: style: Variable 'nk' can be declared as pointer to const [constVariablePointer] winregfs-0.7/ntreg.c:532:12: style: Variable 'pofs' is assigned a value that is never used. [unreadVariable] diff: DONE