2024-04-24 08:30 ftp://ftp.de.debian.org/debian/pool/main/d/dmalloc/dmalloc_5.5.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.14.0 head-info: 7dab204 (2024-04-23 22:20:29 +0200) count: 215 215 elapsed-time: 2.2 2.2 head-timing-info: old-timing-info: head results: dmalloc-5.5.2/compat.c:383:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable null_reached [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/compat.c:414:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pnt_p [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/compat.c:379:33: style: Variable 'null_reached_b' is assigned a value that is never used. [unreadVariable] dmalloc-5.5.2/compat.c:402:27: style: Variable 'pnt' is assigned a value that is never used. [unreadVariable] dmalloc-5.5.2/compat.c:406:11: style: Variable 'pnt' is assigned a value that is never used. [unreadVariable] dmalloc-5.5.2/chunk.c:377:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:425:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:479:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASIC_BLOCK [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:581:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:657:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:857:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASIC_BLOCK [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1004:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUMP_SPACE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1180:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FENCE_BOTTOM_SIZE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1251:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALLOC_BLANK_CHAR [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1323:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASIC_BLOCK [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1413:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1484:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1523:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1618:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1805:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1862:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FENCE_BOTTOM_SIZE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:1936:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FILE_LENGTH [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:2007:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:2095:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:2289:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:2342:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FILE_LENGTH [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:2526:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FILE_LENGTH [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:2747:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_RECALLOC [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:2910:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASIC_BLOCK [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:2997:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DUMP_SPACE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/chunk.c:3273:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASIC_BLOCK [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/contrib/Xmalloc.c:24:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STDERR [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/contrib/Xmalloc.c:50:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/contrib/Xmalloc.c:61:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:282:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:340:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:388:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:527:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:634:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:718:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:819:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:857:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:885:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc.c:737:13: warning: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] dmalloc-5.5.2/dmalloc.c:271:10: style: Variable 'str' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc.c:364:20: style: Variable 'tok_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc.c:502:22: style: Variable 'path_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc.c:618:22: style: Variable 'path_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/chunk.c:1116:12: style: Redundant initialization for 'dump_pnt'. The initialized value is overwritten before it is read. [redundantInitialization] dmalloc-5.5.2/chunk.c:1008:24: note: dump_pnt is initialized dmalloc-5.5.2/chunk.c:1116:12: note: dump_pnt is overwritten dmalloc-5.5.2/chunk.c:3118:15: style: The comparison 'block_c > 0' is always false. [knownConditionTrueFalse] dmalloc-5.5.2/chunk.c:3000:30: note: 'block_c' is assigned value '0' here. dmalloc-5.5.2/chunk.c:3118:15: note: The comparison 'block_c > 0' is always false. dmalloc-5.5.2/chunk.c:778:26: style: Variable 'bounds_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/chunk.c:912:17: style: Variable 'bounds_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/chunk.c:1320:16: style: Variable 'bounds_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/chunk.c:1858:18: style: Variable 'max_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/chunk.c:2086:19: style: Variable 'magic3_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/chunk.c:2272:17: style: Variable 'slot_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/chunk.c:2524:14: style: Parameter 'user_pnt' can be declared as pointer to const [constParameterPointer] dmalloc-5.5.2/chunk.c:3158:17: style: Variable 'slot_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/chunk.c:966:10: warning: Uninitialized variable: buf [uninitvar] dmalloc-5.5.2/chunk.c:3091:48: note: Calling function 'display_pnt', 3rd argument 'disp_buf' value is dmalloc-5.5.2/chunk.c:966:10: note: Uninitialized variable: buf dmalloc-5.5.2/chunk.c:918:9: style: Variable 'buf_p' is assigned a value that is never used. [unreadVariable] dmalloc-5.5.2/chunk.c:1707:8: style: Variable 'file' is assigned a value that is never used. [unreadVariable] dmalloc-5.5.2/chunk.c:1708:8: style: Variable 'line' is assigned a value that is never used. [unreadVariable] dmalloc-5.5.2/chunk.c:1611:22: style: Unused variable: name_p [unusedVariable] dmalloc-5.5.2/dmalloc_fc_t.c:81:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_fc_t.c:98:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_fc_t.c:1063:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_fc_t.c:1121:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_argv.c:177:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_argv.c:1160:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ar_short_arg [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_argv.c:1867:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ar_short_arg [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_argv.c:1970:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ar_type [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_argv.c:2173:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_t.c:167:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_t.c:244:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pi_next [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_t.c:632:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_FREE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_t.c:739:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_t.c:1793:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_t.c:3644:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_t.c:4047:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_t.c:444:23: style: Obsolete function 'valloc' called. It is recommended to use 'malloc' or 'mmap' instead. [prohibitedvallocCalled] dmalloc-5.5.2/dmalloc_t.c:2932:13: style: Obsolete function 'valloc' called. It is recommended to use 'malloc' or 'mmap' instead. [prohibitedvallocCalled] dmalloc-5.5.2/dmalloc_t.c:2959:13: style: Obsolete function 'valloc' called. It is recommended to use 'malloc' or 'mmap' instead. [prohibitedvallocCalled] dmalloc-5.5.2/dmalloc_t.c:3031:13: style: Obsolete function 'valloc' called. It is recommended to use 'malloc' or 'mmap' instead. [prohibitedvallocCalled] dmalloc-5.5.2/dmalloc_t.c:3777:64: style: Obsolete function 'valloc' called. It is recommended to use 'malloc' or 'mmap' instead. [prohibitedvallocCalled] dmalloc-5.5.2/dmalloc_t.c:186:11: portability: %d in format string (no. 3) requires 'int' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:294:8: portability: %d in format string (no. 3) requires 'int' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:329:8: portability: %d in format string (no. 4) requires 'int' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:341:8: portability: %d in format string (no. 4) requires 'int' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:381:8: portability: %d in format string (no. 5) requires 'int' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:413:8: portability: %d in format string (no. 5) requires 'int' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:447:8: portability: %d in format string (no. 4) requires 'int' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:669:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:697:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:2094:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:2139:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:2149:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:3006:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:3034:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:3077:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:3087:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:3140:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:3150:10: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_t.c:766:5: error: Memory leak: pnt [memleak] dmalloc-5.5.2/dmalloc_t.c:2826:5: error: Return value of allocation function 'strndup' is not stored. [leakReturnValNotUsed] dmalloc-5.5.2/dmalloc_t.c:2842:5: error: Return value of allocation function 'strndup' is not stored. [leakReturnValNotUsed] dmalloc-5.5.2/dmalloc_t.c:613:7: error: Common realloc mistake: 'pnt' nulled but not freed upon failure [memleakOnRealloc] dmalloc-5.5.2/dmalloc_t.c:2619:5: error: Common realloc mistake: 'pnt' nulled but not freed upon failure [memleakOnRealloc] dmalloc-5.5.2/dmalloc_t.c:2402:31: style: Variable '*((char*)pnt+64)' is reassigned a value before the old one has been used. [redundantAssignment] dmalloc-5.5.2/dmalloc_t.c:2351:31: note: *((char*)pnt+64) is assigned dmalloc-5.5.2/dmalloc_t.c:2402:31: note: *((char*)pnt+64) is overwritten dmalloc-5.5.2/dmalloc_t.c:2494:31: style: Variable '*((char*)pnt+64)' is reassigned a value before the old one has been used. [redundantAssignment] dmalloc-5.5.2/dmalloc_t.c:2444:31: note: *((char*)pnt+64) is assigned dmalloc-5.5.2/dmalloc_t.c:2494:31: note: *((char*)pnt+64) is overwritten dmalloc-5.5.2/dmalloc_t.c:2807:9: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] dmalloc-5.5.2/dmalloc_t.c:2791:9: note: ret is assigned dmalloc-5.5.2/dmalloc_t.c:2807:9: note: ret is overwritten dmalloc-5.5.2/dmalloc_t.c:556:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] dmalloc-5.5.2/dmalloc_t.c:2116:20: style: Checking if unsigned expression 'ex_mark' is less than zero. [unsignedLessThanZero] dmalloc-5.5.2/dmalloc_t.c:458:8: style: Variable 'mem' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_t.c:2067:12: style: Variable 'loc_file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_t.c:2068:12: style: Variable 'new_pnt' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_t.c:2771:11: style: Variable 'str' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_t.c:2771:17: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_t.c:3824:13: style: Variable 'overwrite' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_t.c:738:10: style: Unused variable: func [unusedVariable] dmalloc-5.5.2/dmalloc_t.c:741:22: style: Unused variable: hold_ch [unusedVariable] dmalloc-5.5.2/dmalloc_t.c:2807:9: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] dmalloc-5.5.2/dmalloc_t.c:2807:11: style: Variable 'ret' is allocated memory that is never used. [unusedAllocatedMemory] dmalloc-5.5.2/dmalloc_tab.c:640:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY_TABLE_SIZE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_tab.c:802:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY_TABLE_SIZE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_tab.c:100:26: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:100:26: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:101:26: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:101:26: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:102:26: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:102:26: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:103:16: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:103:16: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:103:16: error: The address of variable 'line' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:184:36: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:184:19: note: Calling function 'hash', 1st argument '(unsigned char*)&line' value is lifetime=line dmalloc-5.5.2/dmalloc_tab.c:103:16: note: The address of variable 'line' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:104:26: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:104:26: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:104:26: error: The address of variable 'line' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:184:36: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:184:19: note: Calling function 'hash', 1st argument '(unsigned char*)&line' value is lifetime=line dmalloc-5.5.2/dmalloc_tab.c:104:26: note: The address of variable 'line' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:105:26: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:105:26: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:105:26: error: The address of variable 'line' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:184:36: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:184:19: note: Calling function 'hash', 1st argument '(unsigned char*)&line' value is lifetime=line dmalloc-5.5.2/dmalloc_tab.c:105:26: note: The address of variable 'line' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:106:26: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:106:26: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:106:26: error: The address of variable 'line' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:184:36: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:184:19: note: Calling function 'hash', 1st argument '(unsigned char*)&line' value is lifetime=line dmalloc-5.5.2/dmalloc_tab.c:106:26: note: The address of variable 'line' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:107:16: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:107:16: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:107:16: error: The address of variable 'line' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:184:36: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:184:19: note: Calling function 'hash', 1st argument '(unsigned char*)&line' value is lifetime=line dmalloc-5.5.2/dmalloc_tab.c:107:16: note: The address of variable 'line' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:108:26: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:108:26: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:108:26: error: The address of variable 'line' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:184:36: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:184:19: note: Calling function 'hash', 1st argument '(unsigned char*)&line' value is lifetime=line dmalloc-5.5.2/dmalloc_tab.c:108:26: note: The address of variable 'line' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:109:26: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:109:26: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:109:26: error: The address of variable 'line' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:184:36: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:184:19: note: Calling function 'hash', 1st argument '(unsigned char*)&line' value is lifetime=line dmalloc-5.5.2/dmalloc_tab.c:109:26: note: The address of variable 'line' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:110:26: error: The address of variable 'file' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:179:38: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:179:21: note: Calling function 'hash', 1st argument '(unsigned char*)&file' value is lifetime=file dmalloc-5.5.2/dmalloc_tab.c:110:26: note: The address of variable 'file' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:110:26: error: The address of variable 'line' is accessed at non-zero index. [objectIndex] dmalloc-5.5.2/dmalloc_tab.c:184:36: note: Address of variable taken here. dmalloc-5.5.2/dmalloc_tab.c:184:19: note: Calling function 'hash', 1st argument '(unsigned char*)&line' value is lifetime=line dmalloc-5.5.2/dmalloc_tab.c:110:26: note: The address of variable 'line' is accessed at non-zero index. dmalloc-5.5.2/dmalloc_tab.c:297:64: style: Parameter 'last_p' can be declared as pointer to const [constParameterPointer] dmalloc-5.5.2/dmalloc_tab.c:608:24: style: Variable 'tab_end_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_tab.c:608:36: style: Variable 'tab_bounds_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_tab.c:692:24: style: Variable 'tab_end_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_tab.c:692:50: style: Variable 'tab_bounds_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_argv.c:880:31: style: Expression is always false because 'else if' condition matches previous condition at line 875. [multiCondition] dmalloc-5.5.2/dmalloc_argv.c:1375:40: style: Condition '*arg_p=='B'' is always false [knownConditionTrueFalse] dmalloc-5.5.2/dmalloc_argv.c:1403:40: style: Condition '*arg_p=='B'' is always false [knownConditionTrueFalse] dmalloc-5.5.2/dmalloc_argv.c:1752:26: style: Condition 'arg_p->ar_short_arg!='\0'' is always false [knownConditionTrueFalse] dmalloc-5.5.2/dmalloc_argv.c:1749:29: note: Assuming that condition 'arg_p->ar_short_arg=='\0'' is not redundant dmalloc-5.5.2/dmalloc_argv.c:1752:26: note: Condition 'arg_p->ar_short_arg!='\0'' is always false dmalloc-5.5.2/dmalloc_argv.c:1217:13: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmalloc_argv.c:1808:8: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] dmalloc-5.5.2/dmallocc.cc:53:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_NEW [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmallocc.cc:65:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_NEW_ARRAY [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmallocc.cc:77:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_DELETE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmallocc.cc:88:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_DELETE_ARRAY [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/dmalloc_argv.c:1331:29: portability: Casting between char * and float * which have an incompatible binary data representation. [invalidPointerCast] dmalloc-5.5.2/dmalloc_argv.c:1335:30: portability: Casting between char * and double * which have an incompatible binary data representation. [invalidPointerCast] dmalloc-5.5.2/dmalloc_argv.c:1556:46: portability: Casting between const char * and float * which have an incompatible binary data representation. [invalidPointerCast] dmalloc-5.5.2/dmalloc_argv.c:1561:46: portability: Casting between const char * and double * which have an incompatible binary data representation. [invalidPointerCast] dmalloc-5.5.2/dmalloc_argv.c:452:12: style: Variable 'max_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_argv.c:613:11: style: Variable 'var_str' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_argv.c:613:21: style: Variable 'postfix' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_argv.c:1569:34: style: Variable 'bin_bounds_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_argv.c:1820:13: style: Variable 'var' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_argv.c:2300:28: style: Parameter 'grid' can be declared as pointer to const [constParameterPointer] dmalloc-5.5.2/dmalloc_argv.c:3539:33: style: Variable 'arg_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/dmalloc_argv.c:1583:27: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] dmalloc-5.5.2/dmalloc_argv.c:1582:42: note: Assignment 'bit_c=sizeof(int)*8-1', assigned value is 31 dmalloc-5.5.2/dmalloc_argv.c:1583:27: note: Shift dmalloc-5.5.2/error.c:155:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_logpath [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/error.c:267:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_logpath [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/error.c:354:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_logpath [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/error.c:497:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_logpath [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/error.c:638:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/error.c:688:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_logpath [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/error.c:151:9: style: Variable 'bounds_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/error.c:152:26: style: Variable 'start_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/error.c:490:17: style: Variable 'bounds_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/env.c:114:9: style: Variable 'colon_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/env.c:128:33: style: Parameter 'start_all' can be declared as pointer to const [constParameterPointer] dmalloc-5.5.2/env.c:326:23: style: Variable 'bounds_p' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/heap.c:123:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/heap.c:191:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dmalloc_errno [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:767:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MALLOC_ERROR [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:871:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MALLOC_ERROR [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:971:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FREE_ERROR [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1045:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_STRDUP [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1081:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_MALLOC [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1111:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_CALLOC [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1143:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_REALLOC [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1175:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_RECALLOC [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1208:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_MEMALIGN [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1237:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_VALLOC [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1279:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_STRDUP [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1337:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_STRDUP [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1370:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_FREE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1401:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_FUNC_CFREE [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1434:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MALLOC_VERIFY_NOERROR [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1527:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MALLOC_VERIFY_NOERROR [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1751:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DMALLOC_ERROR [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:1874:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BASIC_BLOCK [valueFlowBailoutIncompleteVar] dmalloc-5.5.2/malloc.c:630:7: warning: Identical condition 'in_alloc_b', second condition is always false [identicalConditionAfterEarlyExit] dmalloc-5.5.2/malloc.c:621:7: note: If condition 'in_alloc_b' is true, the function will return/exit dmalloc-5.5.2/malloc.c:630:7: note: Testing identical condition 'in_alloc_b' dmalloc-5.5.2/malloc.c:1261:26: style:inconclusive: Function 'strdup' argument 1 names different: declaration 'str' definition 'string'. [funcArgNamesDifferent] dmalloc-5.5.2/malloc_funcs.h:150:26: note: Function 'strdup' argument 1 names different: declaration 'str' definition 'string'. dmalloc-5.5.2/malloc.c:1261:26: note: Function 'strdup' argument 1 names different: declaration 'str' definition 'string'. dmalloc-5.5.2/malloc.c:1078:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1108:10: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1139:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1171:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1204:10: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1234:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1264:15: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1313:16: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1366:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1397:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] dmalloc-5.5.2/malloc.c:1322:10: error: Uninitialized variable: size [uninitvar] diff: DONE