2025-11-25 06:01 ftp://ftp.de.debian.org/debian/pool/main/b/bplay/bplay_0.991.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 -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: 40 40 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: bplay-0.991/sndfunc.c:39:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] bplay-0.991/sndfunc.c:72:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDCTL_DSP_SAMPLESIZE [valueFlowBailoutIncompleteVar] bplay-0.991/sndfunc.c:90:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SNDCTL_DSP_RESET [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:94:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPC_PRIVATE [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:190:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEMMSL [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:203:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEMMSL [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:223:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:350:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:409:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:463:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEMMSL [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:481:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPC_RMID [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:489:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bplay-0.991/bplay.c:118:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] bplay-0.991/bplay.c:354:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bplay-0.991/bplay.c:362:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bplay-0.991/bplay.c:368:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bplay-0.991/bplay.c:400:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bplay-0.991/bplay.c:438:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bplay-0.991/bplay.c:454:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] bplay-0.991/shmbuf.c:429:16: style: Condition 'count==-1' is always false [knownConditionTrueFalse] bplay-0.991/shmbuf.c:427:52: note: Assuming that condition '(count=write(audio,tmpptr,trgt-numwr))>0' is not redundant bplay-0.991/shmbuf.c:429:16: note: Condition 'count==-1' is always false bplay-0.991/shmbuf.c:115:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buffarr [nullPointerOutOfMemory] bplay-0.991/shmbuf.c:113:29: note: Assuming allocation function fails bplay-0.991/shmbuf.c:113:15: note: Assignment 'buffarr=(char**)malloc(numbuffs*sizeof(char*))', assigned value is 0 bplay-0.991/shmbuf.c:115:2: note: Null pointer dereference bplay-0.991/shmbuf.c:186:14: style: Parameter 'semblk' can be declared as pointer to const [constParameterPointer] bplay-0.991/shmbuf.c:199:16: style: Parameter 'semblk' can be declared as pointer to const [constParameterPointer] bplay-0.991/shmbuf.c:300:45: style: Parameter 'hd_buf' can be declared as const array [constParameter] bplay-0.991/shmbuf.c:190:18: style: Variable 'sbuf.sem_num' is assigned a value that is never used. [unreadVariable] bplay-0.991/shmbuf.c:191:17: style: Variable 'sbuf.sem_op' is assigned a value that is never used. [unreadVariable] bplay-0.991/shmbuf.c:192:18: style: Variable 'sbuf.sem_flg' is assigned a value that is never used. [unreadVariable] bplay-0.991/shmbuf.c:203:18: style: Variable 'sbuf.sem_num' is assigned a value that is never used. [unreadVariable] bplay-0.991/shmbuf.c:204:17: style: Variable 'sbuf.sem_op' is assigned a value that is never used. [unreadVariable] bplay-0.991/shmbuf.c:205:18: style: Variable 'sbuf.sem_flg' is assigned a value that is never used. [unreadVariable] bplay-0.991/bplay.c:468:5: error: Memory leak: junk [memleak] bplay-0.991/bplay.c:251:11: style: Variable 'riff' can be declared as pointer to const [constVariablePointer] bplay-0.991/bplay.c:252:11: style: Variable 'wave' can be declared as pointer to const [constVariablePointer] bplay-0.991/bplay.c:253:11: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] bplay-0.991/bplay.c:254:11: style: Variable 'data' can be declared as pointer to const [constVariablePointer] bplay-0.991/bplay.c:360:20: style: Parameter 'err' can be declared as pointer to const [constParameterPointer] bplay-0.991/bplay.c:366:17: style: Parameter 'err' can be declared as pointer to const [constParameterPointer] bplay-0.991/bplay.c:405:30: style: Parameter 'hd_buf' can be declared as const array [constParameter] bplay-0.991/bplay.c:443:30: style: Parameter 'hd_buf' can be declared as const array [constParameter] bplay-0.991/bplay.c:411:11: style: Variable 'count' is assigned a value that is never used. [unreadVariable] diff: DONE