2026-05-01 14:58 ftp://ftp.de.debian.org/debian/pool/main/d/ddrutility/ddrutility_2.8.orig.tar.xz 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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 209 209 elapsed-time: 0.8 0.6 head-timing-info: old-timing-info: head results: ddru_diskutility.c:28:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfscommon.c:93:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ddrutility.c:48:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] ddrutility.c:46:26: style: Variable 'long_options' can be declared as const array [constVariable] ddru_ntfscommon.c:81:39: error: Array 'file_attribute.items.Name[510]' accessed at index 511, which is out of bounds. [arrayIndexOutOfBounds] ddru_ntfscommon.c:138:31: style: Condition '(int)ret<0' is always false [knownConditionTrueFalse] ddru_ntfscommon.c:138:15: note: Assuming that condition 'ret>0' is not redundant ddru_ntfscommon.c:138:31: note: Condition '(int)ret<0' is always false ddru_ntfscommon.c:107:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfscommon.c:112:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfscommon.c:117:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfscommon.c:128:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfscommon.c:134:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfscommon.c:140:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:34:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsbitmap.c:147:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] ddru_ntfsbitmap.c:406:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddru_ntfsbitmap.c:531:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsbitmap.c:651:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddru_ntfsbitmap.c:666:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsbitmap.c:967:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsbitmap.c:1194:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddru_ntfsbitmap.c:1405:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:157:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:404:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:528:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:624:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:662:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:688:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:1051:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:1163:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsfindbad.c:1488:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ddru_ntfsbitmap.c:546:86: error: Array 'boot_sector.items.chJumpInstruction[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds] ddru_ntfsbitmap.c:551:76: error: Array 'boot_sector.items.chDummy[4]' accessed at index 4, which is out of bounds. [arrayIndexOutOfBounds] ddru_ntfsbitmap.c:557:80: error: Array 'boot_sector.items.uchReserved[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds] ddru_ntfsbitmap.c:56:40: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ddru_ntfsbitmap.c:260:5: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:402:3: warning: %lld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:402:3: warning: %lld in format string (no. 3) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:402:3: warning: %lld in format string (no. 4) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:432:3: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:432:3: warning: %lld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:445:7: warning: %lld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:445:7: warning: %lld in format string (no. 3) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:445:7: warning: %lld in format string (no. 4) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:476:7: warning: %lld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:476:7: warning: %lld in format string (no. 3) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:476:7: warning: %lld in format string (no. 4) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:513:3: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:513:3: warning: %lld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:623:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:722:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:722:5: portability: %d in format string (no. 2) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:725:7: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:725:7: portability: %d in format string (no. 2) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:735:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:748:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:753:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:757:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:763:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:764:8: portability: %d in format string (no. 1) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:767:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:768:3: portability: %d in format string (no. 1) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:783:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:788:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:792:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:798:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:799:6: portability: %d in format string (no. 1) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:802:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:803:8: portability: %d in format string (no. 1) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:811:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:816:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:820:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:826:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:827:6: portability: %d in format string (no. 1) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:830:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:831:8: portability: %d in format string (no. 1) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:850:7: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1015:4: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1021:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1114:4: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1120:4: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1137:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1148:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1150:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1363:3: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1374:3: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1375:3: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1376:3: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1406:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1462:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:1465:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsbitmap.c:590:5: error: Resource leak: readfile [resourceLeak] ddru_ntfsbitmap.c:524:30: style:inconclusive: Function 'read_boot_sec_file' argument 1 names different: declaration 'destination_file' definition 'input_file'. [funcArgNamesDifferent] ddru_ntfsbitmap.c:107:30: note: Function 'read_boot_sec_file' argument 1 names different: declaration 'destination_file' definition 'input_file'. ddru_ntfsbitmap.c:524:30: note: Function 'read_boot_sec_file' argument 1 names different: declaration 'destination_file' definition 'input_file'. ddru_ntfsbitmap.c:130:18: style: Local variable 'tvBegin' shadows outer variable [shadowVariable] ddru_ntfscommon.h:41:16: note: Shadowed declaration ddru_ntfsbitmap.c:130:18: note: Shadow variable ddru_ntfsbitmap.c:130:27: style: Local variable 'tvEnd' shadows outer variable [shadowVariable] ddru_ntfscommon.h:41:25: note: Shadowed declaration ddru_ntfsbitmap.c:130:27: note: Shadow variable ddru_ntfsbitmap.c:130:34: style: Local variable 'tvDiff' shadows outer variable [shadowVariable] ddru_ntfscommon.h:41:32: note: Shadowed declaration ddru_ntfsbitmap.c:130:34: note: Shadow variable ddru_ntfsbitmap.c:40:62: style: Parameter 't2' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:40:82: style: Parameter 't1' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:49:36: style: Parameter 'tv' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:145:26: style: Variable 'long_options' can be declared as const array [constVariable] ddru_ntfsbitmap.c:398:25: style: Parameter 'ddrescue_options' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:398:146: style: Parameter 'source_disk' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:398:166: style: Parameter 'destination_file' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:398:190: style: Parameter 'log_file' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:524:30: style: Parameter 'input_file' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:659:26: style: Parameter 'input_file' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:1188:31: style: Parameter 'input_file' can be declared as pointer to const [constParameterPointer] ddru_ntfsbitmap.c:593:16: style: int result is assigned to long long variable. If the variable is long long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ddru_ntfsbitmap.c:599:21: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ddru_ntfsbitmap.c:1291:18: warning: Uninitialized variable: lastbit [uninitvar] ddru_ntfsbitmap.c:1284:11: note: Assuming condition is false ddru_ntfsbitmap.c:1291:18: note: Uninitialized variable: lastbit ddru_ntfsbitmap.c:1461:39: warning: Uninitialized variable: lowest [uninitvar] ddru_ntfsbitmap.c:1455:48: note: Assuming condition is false ddru_ntfsbitmap.c:1461:39: note: Uninitialized variable: lowest ddru_ntfsbitmap.c:1305:27: style: Variable 'tempbit' is assigned a value that is never used. [unreadVariable] ddru_ntfsfindbad.c:554:86: error: Array 'boot_sector.items.chJumpInstruction[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds] ddru_ntfsfindbad.c:559:76: error: Array 'boot_sector.items.chDummy[4]' accessed at index 4, which is out of bounds. [arrayIndexOutOfBounds] ddru_ntfsfindbad.c:565:80: error: Array 'boot_sector.items.uchReserved[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds] ddru_ntfsfindbad.c:56:40: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] ddru_ntfsfindbad.c:321:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:323:5: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:331:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:347:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:352:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:353:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:354:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:465:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:469:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:479:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:513:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:513:3: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:513:3: warning: %ld in format string (no. 3) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:609:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:670:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:777:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:777:7: warning: %lld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:789:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:789:2: warning: %lld in format string (no. 2) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:798:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:798:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:863:3: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:863:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:863:3: warning: %ld in format string (no. 6) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:863:3: warning: %lld in format string (no. 7) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:870:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:870:8: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:870:8: warning: %ld in format string (no. 7) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:870:8: warning: %lld in format string (no. 8) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:962:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1074:7: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1074:7: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1139:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1139:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1139:2: warning: %lld in format string (no. 3) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1144:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1144:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1144:2: warning: %lld in format string (no. 3) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1169:5: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1171:7: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1207:7: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1220:7: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1220:7: portability: %d in format string (no. 2) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1232:7: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1235:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1248:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1255:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1264:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1264:8: portability: %d in format string (no. 3) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1280:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1287:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1296:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1296:6: portability: %d in format string (no. 3) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1305:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1312:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1321:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1321:6: portability: %d in format string (no. 3) requires 'int' but the argument type is 'DWORD {aka unsigned int}'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1345:7: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1432:8: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1532:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1539:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1559:4: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1631:4: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:1637:4: warning: %lld in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] ddru_ntfsfindbad.c:539:5: error: Resource leak: readfile [resourceLeak] ddru_ntfsfindbad.c:545:5: error: Resource leak: readfile [resourceLeak] ddru_ntfsfindbad.c:488:7: error: Common realloc mistake: 'position' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:495:7: error: Common realloc mistake: 'size' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:502:7: error: Common realloc mistake: 'type' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:908:8: error: Common realloc mistake: 'inode_count_buf' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:915:8: error: Common realloc mistake: 'error_size_buf' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:922:8: error: Common realloc mistake: 'inode_type_buf' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:929:8: error: Common realloc mistake: 'error_count_buf' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:938:8: error: Common realloc mistake: 'file_name_buf' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:945:8: error: Common realloc mistake: 'file_name_pt' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:978:2: error: Common realloc mistake: 'master_inode_buf' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:985:2: error: Common realloc mistake: 'master_parent_buf' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:992:2: error: Common realloc mistake: 'master_attrib_buf' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:1001:2: error: Common realloc mistake: 'master_file_name_buf' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:1008:2: error: Common realloc mistake: 'master_file_name_pt' nulled but not freed upon failure [memleakOnRealloc] ddru_ntfsfindbad.c:936:12: style: Local variable 'cols' shadows outer variable [shadowVariable] ddru_ntfsfindbad.c:704:7: note: Shadowed declaration ddru_ntfsfindbad.c:936:12: note: Shadow variable ddru_ntfsfindbad.c:937:21: style: Local variable 'i' shadows outer variable [shadowVariable] ddru_ntfsfindbad.c:705:16: note: Shadowed declaration ddru_ntfsfindbad.c:937:21: note: Shadow variable ddru_ntfsfindbad.c:999:6: style: Local variable 'cols' shadows outer variable [shadowVariable] ddru_ntfsfindbad.c:704:7: note: Shadowed declaration ddru_ntfsfindbad.c:999:6: note: Shadow variable ddru_ntfsfindbad.c:1000:15: style: Local variable 'i' shadows outer variable [shadowVariable] ddru_ntfsfindbad.c:705:16: note: Shadowed declaration ddru_ntfsfindbad.c:1000:15: note: Shadow variable ddru_ntfsfindbad.c:40:62: style: Parameter 't2' can be declared as pointer to const [constParameterPointer] ddru_ntfsfindbad.c:40:82: style: Parameter 't1' can be declared as pointer to const [constParameterPointer] ddru_ntfsfindbad.c:49:36: style: Parameter 'tv' can be declared as pointer to const [constParameterPointer] ddru_ntfsfindbad.c:155:26: style: Variable 'long_options' can be declared as const array [constVariable] ddru_ntfsfindbad.c:402:21: style: Parameter 'log_file' can be declared as pointer to const [constParameterPointer] ddru_ntfsfindbad.c:591:16: style: int result is assigned to long long variable. If the variable is long long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ddru_ntfsfindbad.c:597:21: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] ddru_ntfsfindbad.c:1055:19: style: Variable 'p' is assigned a value that is never used. [unreadVariable] ddru_ntfsfindbad.c:1057:19: style: Variable 'n' is assigned a value that is never used. [unreadVariable] diff: DONE