2025-07-05 22:59 ftp://ftp.de.debian.org/debian/pool/main/s/speex/speex_1.2~rc1.2.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 -j10 platform: Linux-6.8.12-11-pve-x86_64-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: 9b11b6b (2025-07-04 16:03:30 +0200) count: 75 74 elapsed-time: 0.5 0.5 head-timing-info: old-timing-info: head results: speex-1.2~rc1.2/libspeex/arch.h:65:0: error: #error You now need to define either FIXED_POINT or FLOATING_POINT [preprocessorErrorDirective] speex-1.2~rc1.2/libspeex/arch.h:65:2: error: #error You now need to define either FIXED_POINT or FLOATING_POINT [preprocessorErrorDirective] speex-1.2~rc1.2/libspeex/testdenoise.c:20:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_PREPROCESS_SET_DENOISE [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/libspeex/testecho.c:27:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/libspeex/testdenoise.c:37:11: style: Variable 'vad' is assigned a value that is never used. [unreadVariable] speex-1.2~rc1.2/libspeex/testenc.c:34:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_MODEID_NB [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/libspeex/testenc_uwb.c:39:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_MODEID_UWB [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/libspeex/testenc_wb.c:38:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_MODEID_WB [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/libspeex/testjitter.c:39:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JITTER_BUFFER_OK [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/libspeex/testjitter.c:69:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JITTER_BUFFER_OK [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/libspeex/testecho.c:39:17: warning: If resource allocation fails, then there is a possible null pointer dereference: ref_fd [nullPointerOutOfResources] speex-1.2~rc1.2/libspeex/testecho.c:31:19: note: Assuming allocation function fails speex-1.2~rc1.2/libspeex/testecho.c:31:19: note: Assignment 'ref_fd=fopen(argv[1],"rb")', assigned value is 0 speex-1.2~rc1.2/libspeex/testecho.c:39:17: note: Null pointer dereference speex-1.2~rc1.2/src/wav_io.c:85:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/ti/testenc-TI-C64x.c:92:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FRAME_SIZE [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/skeleton.c:181:12: style: Condition '!result' is always false [knownConditionTrueFalse] speex-1.2~rc1.2/ti/testenc-TI-C5x.c:122:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FRAME_SIZE [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/skeleton.c:15:38: style: Parameter 'og' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/skeleton.c:25:47: style: Parameter 'header_key' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/skeleton.c:26:47: style: Parameter 'header_value' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/skeleton.c:75:45: style: Parameter 'fp' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/skeleton.c:102:45: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/skeleton.c:121:45: style: Parameter 'op' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/libspeex/testenc_uwb.c:81:17: warning: If resource allocation fails, then there is a possible null pointer dereference: fin [nullPointerOutOfResources] speex-1.2~rc1.2/libspeex/testenc_uwb.c:72:15: note: Assuming allocation function fails speex-1.2~rc1.2/libspeex/testenc_uwb.c:72:15: note: Assignment 'fin=fopen(inFile,"rb")', assigned value is 0 speex-1.2~rc1.2/libspeex/testenc_uwb.c:81:17: note: Null pointer dereference speex-1.2~rc1.2/libspeex/testenc_uwb.c:18:10: style: Variable 'inFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/libspeex/testenc_uwb.c:18:19: style: Variable 'outFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/libspeex/testenc.c:82:17: warning: If resource allocation fails, then there is a possible null pointer dereference: fin [nullPointerOutOfResources] speex-1.2~rc1.2/libspeex/testenc.c:73:15: note: Assuming allocation function fails speex-1.2~rc1.2/libspeex/testenc.c:73:15: note: Assignment 'fin=fopen(inFile,"rb")', assigned value is 0 speex-1.2~rc1.2/libspeex/testenc.c:82:17: note: Null pointer dereference speex-1.2~rc1.2/libspeex/testenc_uwb.c:18:29: style: Variable 'bitsFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/src/wav_io.c:196:9: style: Variable 'ch[4]' is assigned a value that is never used. [unreadVariable] speex-1.2~rc1.2/libspeex/testenc.c:18:10: style: Variable 'inFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/libspeex/testenc_uwb.c:87:21: style: Variable 'in_float[i]' is assigned a value that is never used. [unreadVariable] speex-1.2~rc1.2/libspeex/testenc.c:18:19: style: Variable 'outFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/libspeex/testenc.c:18:29: style: Variable 'bitsFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/libspeex/testenc_wb.c:85:17: warning: If resource allocation fails, then there is a possible null pointer dereference: fin [nullPointerOutOfResources] speex-1.2~rc1.2/libspeex/testenc_wb.c:76:15: note: Assuming allocation function fails speex-1.2~rc1.2/libspeex/testenc_wb.c:76:15: note: Assignment 'fin=fopen(inFile,"rb")', assigned value is 0 speex-1.2~rc1.2/libspeex/testenc_wb.c:85:17: note: Null pointer dereference speex-1.2~rc1.2/libspeex/testenc_wb.c:18:10: style: Variable 'inFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/libspeex/testenc_wb.c:18:19: style: Variable 'outFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/libspeex/testenc_wb.c:18:29: style: Variable 'bitsFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/src/getopt.c:673:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexdec.c:103:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexdec.c:226:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexdec.c:294:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_LIB_GET_VERSION_STRING [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexdec.c:302:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_LIB_GET_VERSION_STRING [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexdec.c:318:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexdec.c:471:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_STEREO_STATE_INIT [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexenc.c:187:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_LIB_GET_VERSION_STRING [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexenc.c:195:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_LIB_GET_VERSION_STRING [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexenc.c:339:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SPEEX_LIB_GET_VERSION_STRING [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexenc.c:963:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/src/speexenc.c:983:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] speex-1.2~rc1.2/ti/testenc-TI-C64x.c:177:17: warning: If resource allocation fails, then there is a possible null pointer dereference: fin [nullPointerOutOfResources] speex-1.2~rc1.2/ti/testenc-TI-C64x.c:170:15: note: Assuming allocation function fails speex-1.2~rc1.2/ti/testenc-TI-C64x.c:170:15: note: Assignment 'fin=fopen(inFile,"rb")', assigned value is 0 speex-1.2~rc1.2/ti/testenc-TI-C64x.c:177:17: note: Null pointer dereference speex-1.2~rc1.2/ti/testenc-TI-C64x.c:87:10: style: Variable 'outFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/ti/testenc-TI-C64x.c:87:20: style: Variable 'bitsFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/ti/testenc-TI-C64x.c:90:10: style: Variable 'inFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/ti/testenc-TI-C5x.c:215:17: warning: If resource allocation fails, then there is a possible null pointer dereference: fin [nullPointerOutOfResources] speex-1.2~rc1.2/ti/testenc-TI-C5x.c:208:15: note: Assuming allocation function fails speex-1.2~rc1.2/ti/testenc-TI-C5x.c:208:15: note: Assignment 'fin=fopen(inFile,"rb")', assigned value is 0 speex-1.2~rc1.2/ti/testenc-TI-C5x.c:215:17: note: Null pointer dereference speex-1.2~rc1.2/ti/testenc-TI-C5x.c:89:11: style: Variable 'pIn' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/ti/testenc-TI-C5x.c:103:11: style: Variable 'pIn' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/ti/testenc-TI-C5x.c:117:10: style: Variable 'outFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/ti/testenc-TI-C5x.c:117:20: style: Variable 'bitsFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/ti/testenc-TI-C5x.c:120:10: style: Variable 'inFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/src/speexenc.c:535:44: style: Same expression on both sides of '&&'. [duplicateExpression] speex-1.2~rc1.2/src/speexenc.c:818:14: style: Local variable 'tmp' shadows outer variable [shadowVariable] speex-1.2~rc1.2/src/speexenc.c:334:16: note: Shadowed declaration speex-1.2~rc1.2/src/speexenc.c:818:14: note: Shadow variable speex-1.2~rc1.2/src/speexenc.c:71:29: style: Parameter 'page' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/speexenc.c:84:105: style: Parameter 'buff' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/speexenc.c:166:83: style: Parameter 'header' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/speexenc.c:258:10: style: Variable 'inFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/src/speexenc.c:258:19: style: Variable 'outFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/src/speexenc.c:275:18: style: Variable 'long_options' can be declared as const array [constVariable] speex-1.2~rc1.2/src/speexenc.c:620:13: style: Variable 'st_string' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/src/speexenc.c:956:55: style: Parameter 'vendor_string' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/speexenc.c:972:54: style: Parameter 'tag' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/speexenc.c:972:65: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/speexenc.c:912:24: style: Variable 'bytes_written' is assigned a value that is never used. [unreadVariable] speex-1.2~rc1.2/src/getopt.c:768:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/src/speexdec.c:99:10: style: Variable 'end' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/src/speexdec.c:144:51: style: Parameter 'channels' can be declared as pointer to const [constParameterPointer] speex-1.2~rc1.2/src/speexdec.c:428:10: style: Variable 'inFile' can be declared as pointer to const [constVariablePointer] speex-1.2~rc1.2/src/speexdec.c:440:18: style: Variable 'long_options' can be declared as const array [constVariable] diff: head speex-1.2~rc1.2/libspeex/arch.h:65:2: error: #error You now need to define either FIXED_POINT or FLOATING_POINT [preprocessorErrorDirective] DONE