2025-11-27 07:24 ftp://ftp.de.debian.org/debian/pool/main/j/jack-mixer/jack-mixer_19.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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: 9486fde (2025-11-26 08:20:02 +0100) count: 45 45 elapsed-time: 0.5 0.5 head-timing-info: old-timing-info: head results: jack_mixer-release-19/src/log.c:38:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mix_box.c:65:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mix_box.c:95:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mix_box.c:191:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] jack_mixer-release-19/src/jack_mix_box.c:170:16: warning: If memory allocation fails, then there is a possible null pointer dereference: channel_name [nullPointerOutOfMemory] jack_mixer-release-19/src/jack_mix_box.c:169:24: note: Assuming allocation function fails jack_mixer-release-19/src/jack_mix_box.c:169:24: note: Assignment 'channel_name=malloc(15)', assigned value is 0 jack_mixer-release-19/src/jack_mix_box.c:170:16: note: Null pointer dereference jack_mixer-release-19/src/jack_mix_box.c:101:24: style: Variable 'long_options' can be declared as const array [constVariable] jack_mixer-release-19/src/scale.c:61:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/scale.c:86:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scale_siblings [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/scale.c:139:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scale_siblings [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/scale.c:168:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scale_siblings [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/scale.c:201:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable scale_siblings [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/scale.c:122:3: error: Memory leak: threshold_ptr [memleak] jack_mixer-release-19/src/scale.c:132:22: style: Variable 'prev_ptr' can be declared as pointer to const [constVariablePointer] jack_mixer-release-19/src/scale.c:161:22: style: Variable 'prev_ptr' can be declared as pointer to const [constVariablePointer] jack_mixer-release-19/src/scale.c:194:22: style: Variable 'prev_ptr' can be declared as pointer to const [constVariablePointer] jack_mixer-release-19/src/list.h:311:21: style: Variable 'next' can be declared as pointer to const [constVariablePointer] jack_mixer-release-19/src/jack_mixer.c:173:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:626:86: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:807:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:991:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:1233:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:1443:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:1525:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:1561:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:1792:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:2061:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jack_default_audio_sample_t [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:2204:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jack_default_audio_sample_t [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:2278:76: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] jack_mixer-release-19/src/jack_mixer.c:851:18: error: Invalid sqrt() argument nr 1. The value is -1 but the valid values are '0.0:'. [invalidFunctionArg] jack_mixer-release-19/src/jack_mixer.c:324:12: warning: If memory allocation fails, then there is a possible null pointer dereference: port_name [nullPointerOutOfMemory] jack_mixer-release-19/src/jack_mixer.c:323:23: note: Assuming allocation function fails jack_mixer-release-19/src/jack_mixer.c:323:23: note: Assignment 'port_name=malloc(channel_name_size+3)', assigned value is 0 jack_mixer-release-19/src/jack_mixer.c:324:12: note: Null pointer dereference jack_mixer-release-19/src/jack_mixer.c:326:5: warning: If memory allocation fails, then there is a possible null pointer dereference: port_name [nullPointerOutOfMemory] jack_mixer-release-19/src/jack_mixer.c:323:23: note: Assuming allocation function fails jack_mixer-release-19/src/jack_mixer.c:323:23: note: Assignment 'port_name=malloc(channel_name_size+3)', assigned value is 0 jack_mixer-release-19/src/jack_mixer.c:326:5: note: Null pointer dereference jack_mixer-release-19/src/jack_mixer.c:327:5: warning: If memory allocation fails, then there is a possible null pointer dereference: port_name [nullPointerOutOfMemory] jack_mixer-release-19/src/jack_mixer.c:323:23: note: Assuming allocation function fails jack_mixer-release-19/src/jack_mixer.c:323:23: note: Assignment 'port_name=malloc(channel_name_size+3)', assigned value is 0 jack_mixer-release-19/src/jack_mixer.c:327:5: note: Null pointer dereference jack_mixer-release-19/src/jack_mixer.c:328:5: warning: If memory allocation fails, then there is a possible null pointer dereference: port_name [nullPointerOutOfMemory] jack_mixer-release-19/src/jack_mixer.c:323:23: note: Assuming allocation function fails jack_mixer-release-19/src/jack_mixer.c:323:23: note: Assignment 'port_name=malloc(channel_name_size+3)', assigned value is 0 jack_mixer-release-19/src/jack_mixer.c:328:5: note: Null pointer dereference jack_mixer-release-19/src/jack_mixer.c:1242:10: style: Same expression on both sides of '-'. [duplicateExpression] jack_mixer-release-19/src/jack_mixer.c:1292:12: style: Same expression on both sides of '-'. [duplicateExpression] jack_mixer-release-19/src/jack_mixer.c:846:19: style:inconclusive: Function 'channel_abspeak_read' argument 2 names different: declaration 'modes' definition 'mode'. [funcArgNamesDifferent] jack_mixer-release-19/src/jack_mixer.h:318:19: note: Function 'channel_abspeak_read' argument 2 names different: declaration 'modes' definition 'mode'. jack_mixer-release-19/src/jack_mixer.c:846:19: note: Function 'channel_abspeak_read' argument 2 names different: declaration 'modes' definition 'mode'. jack_mixer-release-19/src/jack_mixer.c:2289:23: style:inconclusive: Function 'kmeter_init' argument 1 names different: declaration 'km' definition 'kmeter'. [funcArgNamesDifferent] jack_mixer-release-19/src/jack_mixer.h:153:23: note: Function 'kmeter_init' argument 1 names different: declaration 'km' definition 'kmeter'. jack_mixer-release-19/src/jack_mixer.c:2289:23: note: Function 'kmeter_init' argument 1 names different: declaration 'km' definition 'kmeter'. jack_mixer-release-19/src/jack_mixer.c:2306:23: style:inconclusive: Function 'kmeter_process' argument 1 names different: declaration 'km' definition 'kmeter'. [funcArgNamesDifferent] jack_mixer-release-19/src/jack_mixer.h:160:23: note: Function 'kmeter_process' argument 1 names different: declaration 'km' definition 'kmeter'. jack_mixer-release-19/src/jack_mixer.c:2306:23: note: Function 'kmeter_process' argument 1 names different: declaration 'km' definition 'kmeter'. jack_mixer-release-19/src/jack_mixer.c:2490:24: style:inconclusive: Function 'output_channel_set_in_prefader' argument 2 names different: declaration 'input_channel' definition 'channel'. [funcArgNamesDifferent] jack_mixer-release-19/src/jack_mixer.h:408:24: note: Function 'output_channel_set_in_prefader' argument 2 names different: declaration 'input_channel' definition 'channel'. jack_mixer-release-19/src/jack_mixer.c:2490:24: note: Function 'output_channel_set_in_prefader' argument 2 names different: declaration 'input_channel' definition 'channel'. jack_mixer-release-19/src/jack_mixer.c:2307:32: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] jack_mixer-release-19/src/jack_mixer.c:2483:26: style: Variable 'output_channel_ptr' can be declared as pointer to const [constVariablePointer] jack_mixer-release-19/src/jack_mixer.c:1223:42: style: Variable 'frame_left' is assigned a value that is never used. [unreadVariable] jack_mixer-release-19/src/jack_mixer.c:1224:43: style: Variable 'frame_right' is assigned a value that is never used. [unreadVariable] jack_mixer-release-19/src/jack_mixer.c:1225:46: style: Variable 'frame_left_pre' is assigned a value that is never used. [unreadVariable] jack_mixer-release-19/src/jack_mixer.c:1226:47: style: Variable 'frame_right_pre' is assigned a value that is never used. [unreadVariable] diff: DONE