2024-04-20 20:07 ftp://ftp.de.debian.org/debian/pool/main/o/openvlbi/openvlbi_3.0.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 -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.13.0 head-info: fb15ac6 (2024-04-20 19:16:41 +0200) count: 594 465 elapsed-time: 12.4 15.9 head-timing-info: old-timing-info: head results: OpenVLBI-3.0.2/dsp/align.c:70:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable diameter [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/align.c:84:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable diameter [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/align.c:131:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable diameter [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/align.c:148:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_align_info [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/align.c:190:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable location [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/align.c:201:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_triangle [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/align.c:266:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_star [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/align.c:107:13: style: Variable 'a' can be declared as pointer to const [constVariablePointer] OpenVLBI-3.0.2/dsp/align.c:108:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] OpenVLBI-3.0.2/dsp/align.c:114:13: style: Variable 'a' can be declared as pointer to const [constVariablePointer] OpenVLBI-3.0.2/dsp/align.c:115:13: style: Variable 'b' can be declared as pointer to const [constVariablePointer] OpenVLBI-3.0.2/dsp/align.c:121:11: style: Variable 'x' is assigned a value that is never used. [unreadVariable] OpenVLBI-3.0.2/dsp/buffer.c:27:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_t [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/buffer.c:253:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_t [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/buffer.c:303:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/buffer.c:332:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_t [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/buffer.c:56:49: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] OpenVLBI-3.0.2/dsp/buffer.c:67:49: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] OpenVLBI-3.0.2/dsp/buffer.c:100:49: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] OpenVLBI-3.0.2/dsp/buffer.c:111:49: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] OpenVLBI-3.0.2/dsp/buffer.c:122:49: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] OpenVLBI-3.0.2/dsp/buffer.c:242:9: style: Variable 'arguments' can be declared as pointer to const [constVariablePointer] OpenVLBI-3.0.2/dsp/buffer.c:322:9: style: Variable 'arguments' can be declared as pointer to const [constVariablePointer] OpenVLBI-3.0.2/dsp/buffer.c:390:53: style: Parameter 'deviation' can be declared as pointer to const [constParameterPointer] OpenVLBI-3.0.2/dsp/fft.c:37:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable complex_t [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/fft.c:64:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable complex_t [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/fft.c:85:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable real [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/fft.c:98:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable real [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/fft.c:148:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FFTW_ESTIMATE_PATIENT [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/fft.c:182:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FFTW_ESTIMATE_PATIENT [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/fft.c:114:54: style: Parameter 'mag' can be declared as pointer to const [constParameterPointer] OpenVLBI-3.0.2/dsp/fft.c:114:67: style: Parameter 'phi' can be declared as pointer to const [constParameterPointer] OpenVLBI-3.0.2/dsp/file.c:36:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READONLY [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:167:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USHORT_IMG [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:270:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USHORT_IMG [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:379:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USHORT_IMG [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:531:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:579:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JCS_RGB [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:607:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sizes [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:677:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_COLOR_MASK_PALETTE [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:709:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sizes [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:757:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_t [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:852:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_t [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:959:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_t [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:1055:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_t [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:1146:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_stream_p [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:1169:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_stream_p [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:1247:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dsp_t_max [valueFlowBailoutIncompleteVar] OpenVLBI-3.0.2/dsp/file.c:662:9: error: Resource leak: infile [resourceLeak] OpenVLBI-3.0.2/dsp/file.c:665:9: error: Resource leak: infile [resourceLeak] OpenVLBI-3.0.2/dsp/file.c:668:9: error: Resource leak: infile [resourceLeak] OpenVLBI-3.0.2/dsp/file.c:670:9: error: Resource leak: infile [resourceLeak] OpenVLBI-3.0.2/dsp/file.c:850:20: style: Variable 'red' can be declared as pointer to const [constVariablePointer] OpenVLBI-3.0.2/dsp/file.c:850:26: style: Variable 'green' can be declared as pointer to const [constVariablePointer] OpenVLBI-3.0.2/dsp/file.c:850:34: style: Variable 'blue' can be declared as pointer to const [constVariablePointer] OpenVLBI-3.0.2/dsp/file.c:283:19: warning: Shifting 32-bit value by 64 bits is undefined behaviour. See condition at line 310. [shiftTooManyBits] OpenVLBI-3.0.2/dsp/file.c:310:13: note: case 64: bpp is 64 here. OpenVLBI-3.0.2/dsp/file.c:283:19: note: Shift OpenVLBI-3.0.2/dsp/file.c:396:70: warning: Shifting 32-bit value by 64 bits is undefined behaviour. See condition at line 420. [shiftTooManyBits] OpenVLBI-3.0.2/dsp/file.c:420:13: note: case 64: bpp is 64 here. OpenVLBI-3.0.2/dsp/file.c:396:70: note: Shift OpenVLBI-3.0.2/dsp/file.c:1246:36: warning: Shifting 32-bit value by 64 bits is undefined behaviour. See condition at line 1261. [shiftTooManyBits] OpenVLBI-3.0.2/dsp/file.c:1261:9: note: case 64: bpp is 64 here. OpenVLBI-3.0.2/dsp/file.c:1246:36: note: Shift OpenVLBI-3.0.2/dsp/file.c:283:19: warning: Either the switch case 'case 32' is redundant or there is signed integer overflow for expression '1<<(unsigned long)abs(bpp)'. [integerOverflowCond] OpenVLBI-3.0.2/dsp/file.c:303:13: note: case 32: bpp is 32 here. OpenVLBI-3.0.2/dsp/file.c:283:19: note: Integer overflow OpenVLBI-3.0.2/dsp/file.c:283:38: warning: Either the switch case 'case 32' is redundant or there is signed integer overflow for expression '(1<<(unsigned long)abs(bpp))/2'. [integerOverflowCond] OpenVLBI-3.0.2/dsp/file.c:303:13: note: case 32: bpp is 32 here. OpenVLBI-3.0.2/dsp/file.c:283:38: note: Integer overflow OpenVLBI-3.0.2/dsp/file.c:396:70: warning: Either the switch case 'case 32' is redundant or there is signed integer overflow for expression '1<<(unsigned long)abs(bpp)'. [integerOverflowCond] OpenVLBI-3.0.2/dsp/file.c:413:13: note: case 32: bpp is 32 here. OpenVLBI-3.0.2/dsp/file.c:396:70: note: Integer overflow OpenVLBI-3.0.2/dsp/file.c:1246:36: warning: Either the switch case 'case 32' is redundant or there is signed integer overflow for expression '1<