2026-05-03 13:52 ftp://ftp.de.debian.org/debian/pool/main/m/modplugtools/modplugtools_0.5.6.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-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 35 36 elapsed-time: 0.7 0.6 head-timing-info: old-timing-info: head results: modplug-tools-0.5.6/mp123/modplug123.c:132:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ICANON [valueFlowBailoutIncompleteVar] modplug-tools-0.5.6/mp123/modplug123.c:142:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSANOW [valueFlowBailoutIncompleteVar] modplug-tools-0.5.6/mp123/modplug123.c:275:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AO_FMT_LITTLE [valueFlowBailoutIncompleteVar] modplug-tools-0.5.6/mp123/modplug123.c:372:10: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] modplug-tools-0.5.6/mp123/modplug123.c:371:15: note: outer condition: mlen!=0 modplug-tools-0.5.6/mp123/modplug123.c:372:10: note: opposite inner condition: mlen==0 modplug-tools-0.5.6/mp123/modplug123.c:200:11: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] modplug-tools-0.5.6/mp123/modplug123.c:199:25: note: Assuming allocation function fails modplug-tools-0.5.6/mp123/modplug123.c:199:12: note: Assignment 'data=(char*)malloc(*size)', assigned value is 0 modplug-tools-0.5.6/mp123/modplug123.c:200:11: note: Null pointer dereference modplug-tools-0.5.6/mp123/modplug123.c:162:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] modplug-tools-0.5.6/mp123/modplug123.c:187:25: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] modplug-tools-0.5.6/mp123/modplug123.c:358:8: style: Variable 'st' can be declared as pointer to const [constVariablePointer] modplug-tools-0.5.6/mp123/modplug123.c:212:15: style: Unused variable: len [unusedVariable] modplug-tools-0.5.6/mp123/modplug123.c:283:9: style: Variable 'mono' is assigned a value that is never used. [unreadVariable] modplug-tools-0.5.6/mp123/modplug123.c:284:9: style: Variable 'bits' is assigned a value that is never used. [unreadVariable] modplug-tools-0.5.6/mp123/modplug123.c:287:9: style: Unused variable: millisecond [unusedVariable] modplug-tools-0.5.6/mp123/modplug123.c:288:11: style: Unused variable: randplayed [unusedVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:137:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ICANON [valueFlowBailoutIncompleteVar] modplug-tools-0.5.6/mpplay/modplugplay.c:147:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSANOW [valueFlowBailoutIncompleteVar] modplug-tools-0.5.6/mpplay/modplugplay.c:210:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AFMT_S16_LE [valueFlowBailoutIncompleteVar] modplug-tools-0.5.6/mpplay/modplugplay.c:244:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] modplug-tools-0.5.6/mpplay/modplugplay.c:265:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] modplug-tools-0.5.6/mpplay/modplugplay.c:329:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] modplug-tools-0.5.6/mpplay/modplugplay.c:448:17: error: Array 'songname[41]' accessed at index 41, which is out of bounds. [arrayIndexOutOfBounds] modplug-tools-0.5.6/mpplay/modplugplay.c:458:10: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition] modplug-tools-0.5.6/mpplay/modplugplay.c:457:15: note: outer condition: mlen!=0 modplug-tools-0.5.6/mpplay/modplugplay.c:458:10: note: opposite inner condition: mlen==0 modplug-tools-0.5.6/mpplay/modplugplay.c:233:11: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] modplug-tools-0.5.6/mpplay/modplugplay.c:232:25: note: Assuming allocation function fails modplug-tools-0.5.6/mpplay/modplugplay.c:232:12: note: Assignment 'data=(char*)malloc(*size)', assigned value is 0 modplug-tools-0.5.6/mpplay/modplugplay.c:233:11: note: Null pointer dereference modplug-tools-0.5.6/mpplay/modplugplay.c:166:17: style: Parameter 's' can be declared as pointer to const [constParameterPointer] modplug-tools-0.5.6/mpplay/modplugplay.c:220:25: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] modplug-tools-0.5.6/mpplay/modplugplay.c:445:8: style: Variable 'st' can be declared as pointer to const [constVariablePointer] modplug-tools-0.5.6/mpplay/modplugplay.c:289:9: style: Variable 'vol' is assigned a value that is never used. [unreadVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:299:9: style: Unused variable: c [unusedVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:309:9: style: Unused variable: millisecond [unusedVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:310:11: style: Unused variable: randplayed [unusedVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:316:9: style: Variable 'rev' is assigned a value that is never used. [unreadVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:317:9: style: Variable 'revdly' is assigned a value that is never used. [unreadVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:318:9: style: Variable 'sur' is assigned a value that is never used. [unreadVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:319:9: style: Variable 'surdly' is assigned a value that is never used. [unreadVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:320:9: style: Variable 'bas' is assigned a value that is never used. [unreadVariable] modplug-tools-0.5.6/mpplay/modplugplay.c:321:9: style: Variable 'basrng' is assigned a value that is never used. [unreadVariable] diff: 2.20.0 modplug-tools-0.5.6/mpplay/modplugplay.c:206:14: style: Variable 't[i]' is assigned a value that is never used. [unreadVariable] DONE