2025-05-06 11:23 ftp://ftp.de.debian.org/debian/pool/main/m/muroard/muroard_0.1.14.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: ca3f092 (2025-05-06 12:26:46 +0200) count: 57 53 elapsed-time: 0.3 0.3 head-timing-info: old-timing-info: head results: muroard-0.1.14/cf_riff_wave.c:47:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MUROAR_CODEC_PCM_S_LE [valueFlowBailoutIncompleteVar] muroard-0.1.14/cf_au.c:72:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MUROAR_CODEC_MULAW [valueFlowBailoutIncompleteVar] muroard-0.1.14/clients.c:770:25: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] muroard-0.1.14/driver_oss.c:72:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver.c:85:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_ao.c:58:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AO_FMT_NATIVE [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_esd.c:34:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ESD_PLAY [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_sndio.c:42:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIO_LE_NATIVE [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_tinyalsa.c:45:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCM_FORMAT_S16_LE [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_wmm.c:90:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lpData [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_wmm.c:141:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dwFlags [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_wmm.c:181:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAVEHDR [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_wmm.c:202:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dwFlags [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_wmm.c:238:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WAVE_FORMAT_PCM [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_wmm.c:330:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dwBufferLength [valueFlowBailoutIncompleteVar] muroard-0.1.14/dsp.c:77:12: style: Variable 'ds' can be declared as pointer to const [constVariablePointer] muroard-0.1.14/dsp.c:129:12: style: Variable 'ds' can be declared as pointer to const [constVariablePointer] muroard-0.1.14/driver_wmm.c:235:2: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:235:2: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:238:2: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:238:2: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:239:2: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:239:2: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:240:2: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:240:2: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:241:2: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:241:2: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:242:2: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:242:2: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:242:35: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:242:35: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:242:68: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:242:68: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:243:2: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:243:2: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:243:34: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:243:34: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:243:63: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:243:63: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:244:2: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:244:2: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:247:3: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:247:3: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:248:3: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:248:3: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:253:3: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:253:3: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:255:3: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:255:3: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:256:6: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:256:6: note: Null pointer dereference muroard-0.1.14/driver_wmm.c:260:17: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:260:17: note: Null pointer dereference muroard-0.1.14/memmgr.c:82:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MCL_CURRENT [valueFlowBailoutIncompleteVar] muroard-0.1.14/driver_wmm.c:56:12: style: struct member 'Anonymous2::idx' is never used. [unusedStructMember] muroard-0.1.14/driver_wmm.c:175:11: style: Variable 'mmres' is assigned a value that is never used. [unreadVariable] muroard-0.1.14/muroard.c:127:26: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] muroard-0.1.14/proto.c:60:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] muroard-0.1.14/proto.c:64:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] muroard-0.1.14/proto.c:79:72: style: Parameter 'mes' can be declared as pointer to const [constParameterPointer] muroard-0.1.14/network.c:68:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] muroard-0.1.14/network.c:117:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_UNIX [valueFlowBailoutIncompleteVar] muroard-0.1.14/network.c:237:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] muroard-0.1.14/network.c:358:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmsghdr [valueFlowBailoutIncompleteVar] muroard-0.1.14/streams.c:73:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MUROAR_CODEC_PCM_S [valueFlowBailoutIncompleteVar] muroard-0.1.14/streams.c:412:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MUROAR_CODEC_PCM_S_BE [valueFlowBailoutIncompleteVar] muroard-0.1.14/streams.c:452:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MUROAR_CODEC_PCM_S_BE [valueFlowBailoutIncompleteVar] muroard-0.1.14/streams.c:648:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_NONBLOCK [valueFlowBailoutIncompleteVar] muroard-0.1.14/streams.c:460:23: style: Condition 'stream->iobuf==NULL' is always true [knownConditionTrueFalse] muroard-0.1.14/streams.c:458:22: note: Assuming that condition 'stream->iobuf==NULL' is not redundant muroard-0.1.14/streams.c:460:23: note: Condition 'stream->iobuf==NULL' is always true muroard-0.1.14/streams.c:548:58: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] muroard-0.1.14/streams.c:396:3: portability: '(void*)stream->iobuf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] muroard-0.1.14/network.c:157:16: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] muroard-0.1.14/network.c:93:23: style: Variable 'he' can be declared as pointer to const [constVariablePointer] muroard-0.1.14/waveform.c:144:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] muroard-0.1.14/waveform.c:39:28: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] diff: head muroard-0.1.14/driver_wmm.c:242:35: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:242:35: note: Null pointer dereference head muroard-0.1.14/driver_wmm.c:242:68: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:242:68: note: Null pointer dereference head muroard-0.1.14/driver_wmm.c:243:34: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:243:34: note: Null pointer dereference head muroard-0.1.14/driver_wmm.c:243:63: warning: If memory allocation fails, then there is a possible null pointer dereference: self [nullPointerOutOfMemory] muroard-0.1.14/driver_wmm.c:226:29: note: Assuming allocation function fails muroard-0.1.14/driver_wmm.c:226:29: note: Assignment 'self=malloc(sizeof(struct driver_wmm))', assigned value is 0 muroard-0.1.14/driver_wmm.c:243:63: note: Null pointer dereference DONE