2024-04-26 13:39 ftp://ftp.de.debian.org/debian/pool/main/m/m2300w/m2300w_0.51.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 -j1 platform: Linux-5.15.0-102-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.57 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 cppcheck: head 2.14.0 head-info: 047b608 (2024-04-26 15:21:34 +0200) count: 42 42 elapsed-time: 4.5 4.4 head-timing-info: old-timing-info: head results: m2300w-0.51/src/m2300w.c:345:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2300w.c:418:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2300w.c:556:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2300w.c:710:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2300w.c:740:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2300w.c:781:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2300w.c:1220:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2300w.c:768:20: error: Buffer is accessed out of bounds: buffer [bufferAccessOutOfBounds] m2300w-0.51/src/m2300w.c:871:17: error: Buffer is accessed out of bounds: buffer [bufferAccessOutOfBounds] m2300w-0.51/src/m2300w.c:883:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] m2300w-0.51/src/m2300w.c:884:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] m2300w-0.51/src/m2300w.c:556:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] m2300w-0.51/src/m2300w.c:985:3: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] m2300w-0.51/src/m2300w.c:1135:3: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] m2300w-0.51/src/m2300w.c:424:6: style: Local variable 'debu' shadows outer variable [shadowVariable] m2300w-0.51/src/m2300w.c:411:9: note: Shadowed declaration m2300w-0.51/src/m2300w.c:424:6: note: Shadow variable m2300w-0.51/src/m2300w.c:401:11: style: Variable 'quelle' can be declared as pointer to const [constVariablePointer] m2300w-0.51/src/m2300w.c:551:16: style: Variable 'dummyTable' can be declared as const array [constVariable] m2300w-0.51/src/m2300w.c:762:20: style: Variable 'colorKey' can be declared as const array [constVariable] m2300w-0.51/src/m2300w.c:1186:11: style: Variable 'inFile' can be declared as pointer to const [constVariablePointer] m2300w-0.51/src/m2300w.c:1187:11: style: Variable 'outFile' can be declared as pointer to const [constVariablePointer] m2300w-0.51/src/m2300w.c:899:6: style: Variable 'sbz' is assigned a value that is never used. [unreadVariable] m2300w-0.51/src/m2400w.c:347:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2400w.c:421:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2400w.c:580:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2400w.c:752:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2400w.c:782:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2400w.c:823:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2400w.c:1263:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] m2300w-0.51/src/m2400w.c:810:20: error: Buffer is accessed out of bounds: buffer [bufferAccessOutOfBounds] m2300w-0.51/src/m2400w.c:913:17: error: Buffer is accessed out of bounds: buffer [bufferAccessOutOfBounds] m2300w-0.51/src/m2400w.c:925:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] m2300w-0.51/src/m2400w.c:926:20: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] m2300w-0.51/src/m2400w.c:580:6: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] m2300w-0.51/src/m2400w.c:1027:3: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] m2300w-0.51/src/m2400w.c:1177:3: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] m2300w-0.51/src/m2400w.c:427:6: style: Local variable 'debu' shadows outer variable [shadowVariable] m2300w-0.51/src/m2400w.c:414:9: note: Shadowed declaration m2300w-0.51/src/m2400w.c:427:6: note: Shadow variable m2300w-0.51/src/m2400w.c:404:11: style: Variable 'quelle' can be declared as pointer to const [constVariablePointer] m2300w-0.51/src/m2400w.c:575:16: style: Variable 'dummyTable' can be declared as const array [constVariable] m2300w-0.51/src/m2400w.c:804:20: style: Variable 'colorKey' can be declared as const array [constVariable] m2300w-0.51/src/m2400w.c:1228:11: style: Variable 'inFile' can be declared as pointer to const [constVariablePointer] m2300w-0.51/src/m2400w.c:1229:11: style: Variable 'outFile' can be declared as pointer to const [constVariablePointer] m2300w-0.51/src/m2400w.c:941:6: style: Variable 'sbz' is assigned a value that is never used. [unreadVariable] diff: DONE