2025-11-22 17:49 ftp://ftp.de.debian.org/debian/pool/main/m/morse2ascii/morse2ascii_0.2.1+dfsg.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 -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: 25 25 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: morse2ascii-0.2.1+dfsg/morse2ascii.c:104:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] morse2ascii-0.2.1+dfsg/morse2ascii.c:276:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] morse2ascii-0.2.1+dfsg/morse2ascii.c:630:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] morse2ascii-0.2.1+dfsg/morse2ascii.c:765:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] morse2ascii-0.2.1+dfsg/morse2ascii.c:791:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] morse2ascii-0.2.1+dfsg/morse2ascii.c:842:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] morse2ascii-0.2.1+dfsg/morse2ascii.c:851:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] morse2ascii-0.2.1+dfsg/morse2ascii.c:417:30: style: Expression is always true because 'else if' condition is opposite to previous condition at line 415. [multiCondition] morse2ascii-0.2.1+dfsg/morse2ascii.c:415:30: note: first condition morse2ascii-0.2.1+dfsg/morse2ascii.c:417:30: note: else if condition is opposite to first condition morse2ascii-0.2.1+dfsg/morse2ascii.c:647:25: style: Expression is always true because 'else if' condition is opposite to previous condition at line 646. [multiCondition] morse2ascii-0.2.1+dfsg/morse2ascii.c:646:20: note: first condition morse2ascii-0.2.1+dfsg/morse2ascii.c:647:25: note: else if condition is opposite to first condition morse2ascii-0.2.1+dfsg/morse2ascii.c:652:25: style: Expression is always true because 'else if' condition is opposite to previous condition at line 650. [multiCondition] morse2ascii-0.2.1+dfsg/morse2ascii.c:650:20: note: first condition morse2ascii-0.2.1+dfsg/morse2ascii.c:652:25: note: else if condition is opposite to first condition morse2ascii-0.2.1+dfsg/morse2ascii.c:293:32: style: Condition '!ok' is always true [knownConditionTrueFalse] morse2ascii-0.2.1+dfsg/morse2ascii.c:289:14: note: Assignment 'ok=0', assigned value is 0 morse2ascii-0.2.1+dfsg/morse2ascii.c:293:32: note: Condition '!ok' is always true morse2ascii-0.2.1+dfsg/morse2ascii.c:184:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] morse2ascii-0.2.1+dfsg/morse2ascii.c:184:5: warning: %hu in format string (no. 2) requires 'unsigned short' but the argument type is 'signed short'. [invalidPrintfArgType_uint] morse2ascii-0.2.1+dfsg/morse2ascii.c:246:16: warning: If memory allocation fails, then there is a possible null pointer dereference: beep_out [nullPointerOutOfMemory] morse2ascii-0.2.1+dfsg/morse2ascii.c:238:22: note: Assuming allocation function fails morse2ascii-0.2.1+dfsg/morse2ascii.c:238:22: note: Assignment 'beep_out=malloc((beeps*3)+1)', assigned value is 0 morse2ascii-0.2.1+dfsg/morse2ascii.c:246:16: note: Null pointer dereference morse2ascii-0.2.1+dfsg/morse2ascii.c:274:12: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] morse2ascii-0.2.1+dfsg/morse2ascii.c:238:22: note: Assuming allocation function fails morse2ascii-0.2.1+dfsg/morse2ascii.c:238:22: note: Assignment 'beep_out=malloc((beeps*3)+1)', assigned value is 0 morse2ascii-0.2.1+dfsg/morse2ascii.c:248:22: note: Calling function 'morse_output', 1st argument 'beep_out' value is 0 morse2ascii-0.2.1+dfsg/morse2ascii.c:273:9: note: Assignment 'p=beep', assigned value is 0 morse2ascii-0.2.1+dfsg/morse2ascii.c:274:12: note: Null pointer dereference morse2ascii-0.2.1+dfsg/morse2ascii.c:470:5: warning: Possible null pointer dereference: beep [nullPointer] morse2ascii-0.2.1+dfsg/morse2ascii.c:369:21: note: Assignment 'beep=NULL', assigned value is 0 morse2ascii-0.2.1+dfsg/morse2ascii.c:373:27: note: Assuming condition is false morse2ascii-0.2.1+dfsg/morse2ascii.c:470:5: note: Null pointer dereference morse2ascii-0.2.1+dfsg/morse2ascii.c:94:14: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] morse2ascii-0.2.1+dfsg/morse2ascii.c:269:14: style: Variable 's' can be declared as pointer to const [constVariablePointer] morse2ascii-0.2.1+dfsg/morse2ascii.c:270:14: style: Variable 'z' can be declared as pointer to const [constVariablePointer] morse2ascii-0.2.1+dfsg/morse2ascii.c:271:14: style: Variable 'x' can be declared as pointer to const [constVariablePointer] morse2ascii-0.2.1+dfsg/morse2ascii.c:477:20: style: Parameter 'beep' can be declared as pointer to const [constParameterPointer] morse2ascii-0.2.1+dfsg/morse2ascii.c:850:17: style: Parameter 'err' can be declared as pointer to const [constParameterPointer] morse2ascii-0.2.1+dfsg/mywav.h:86:36: style: Parameter 'mem' can be declared as pointer to const [constParameterPointer] morse2ascii-0.2.1+dfsg/mywav.h:105:48: style: Parameter 'fmtchunk' can be declared as pointer to const [constParameterPointer] morse2ascii-0.2.1+dfsg/mywav.h:188:40: style: Parameter 'find' can be declared as pointer to const [constParameterPointer] diff: DONE