2026-05-05 03:43 ftp://ftp.de.debian.org/debian/pool/main/s/squeezelite/squeezelite_2.0.0-1541+git20250609.72e1fd8.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: 519958a (2026-05-04 15:03:10 +0200) count: 61 58 elapsed-time: 1.3 1.1 head-timing-info: old-timing-info: head results: squeezelite-2.0.0-1541+git20250609.72e1fd8/squeezelite.h:78:2: error: #error unknown target [preprocessorErrorDirective] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:63:106: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ALAC_noErr [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:38:2: warning: If memory allocation fails, then there is a possible null pointer dereference: codec [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:60: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: note: Assignment 'codec=(struct alac_codec_s*)malloc(sizeof(struct alac_codec_s))', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:38:2: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:39:2: warning: If memory allocation fails, then there is a possible null pointer dereference: codec [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:60: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: note: Assignment 'codec=(struct alac_codec_s*)malloc(sizeof(struct alac_codec_s))', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:39:2: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:41:14: warning: If memory allocation fails, then there is a possible null pointer dereference: codec [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:60: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: note: Assignment 'codec=(struct alac_codec_s*)malloc(sizeof(struct alac_codec_s))', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:41:14: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:42:17: warning: If memory allocation fails, then there is a possible null pointer dereference: codec [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:60: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: note: Assignment 'codec=(struct alac_codec_s*)malloc(sizeof(struct alac_codec_s))', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:42:17: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:43:17: warning: If memory allocation fails, then there is a possible null pointer dereference: codec [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:60: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: note: Assignment 'codec=(struct alac_codec_s*)malloc(sizeof(struct alac_codec_s))', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:43:17: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:45:2: warning: If memory allocation fails, then there is a possible null pointer dereference: codec [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:60: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: note: Assignment 'codec=(struct alac_codec_s*)malloc(sizeof(struct alac_codec_s))', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:45:2: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:45:29: warning: If memory allocation fails, then there is a possible null pointer dereference: codec [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:60: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: note: Assignment 'codec=(struct alac_codec_s*)malloc(sizeof(struct alac_codec_s))', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:45:29: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:46:16: warning: If memory allocation fails, then there is a possible null pointer dereference: codec [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:60: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: note: Assignment 'codec=(struct alac_codec_s*)malloc(sizeof(struct alac_codec_s))', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:46:16: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:46:36: warning: If memory allocation fails, then there is a possible null pointer dereference: codec [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:60: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: note: Assignment 'codec=(struct alac_codec_s*)malloc(sizeof(struct alac_codec_s))', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:46:36: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:36:31: style: C-style pointer casting [cstyleCast] squeezelite-2.0.0-1541+git20250609.72e1fd8/alac_wrapper.cpp:53:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:165:42: style:inconclusive: Function 'dsd2pcm_destroy' argument 1 names different: declaration 'ctx' definition 'ptr'. [funcArgNamesDifferent] squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.h:63:42: note: Function 'dsd2pcm_destroy' argument 1 names different: declaration 'ctx' definition 'ptr'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:165:42: note: Function 'dsd2pcm_destroy' argument 1 names different: declaration 'ctx' definition 'ptr'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:170:48: style:inconclusive: Function 'dsd2pcm_clone' argument 1 names different: declaration 'ctx' definition 'ptr'. [funcArgNamesDifferent] squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.h:69:48: note: Function 'dsd2pcm_clone' argument 1 names different: declaration 'ctx' definition 'ptr'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:170:48: note: Function 'dsd2pcm_clone' argument 1 names different: declaration 'ctx' definition 'ptr'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:180:40: style:inconclusive: Function 'dsd2pcm_reset' argument 1 names different: declaration 'ctx' definition 'ptr'. [funcArgNamesDifferent] squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.h:74:40: note: Function 'dsd2pcm_reset' argument 1 names different: declaration 'ctx' definition 'ptr'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:180:40: note: Function 'dsd2pcm_reset' argument 1 names different: declaration 'ctx' definition 'ptr'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:194:15: style:inconclusive: Function 'dsd2pcm_translate' argument 1 names different: declaration 'ctx' definition 'ptr'. [funcArgNamesDifferent] squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.h:87:44: note: Function 'dsd2pcm_translate' argument 1 names different: declaration 'ctx' definition 'ptr'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:194:15: note: Function 'dsd2pcm_translate' argument 1 names different: declaration 'ctx' definition 'ptr'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:197:6: style:inconclusive: Function 'dsd2pcm_translate' argument 5 names different: declaration 'lsbitfirst' definition 'lsbf'. [funcArgNamesDifferent] squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.h:90:6: note: Function 'dsd2pcm_translate' argument 5 names different: declaration 'lsbitfirst' definition 'lsbf'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:197:6: note: Function 'dsd2pcm_translate' argument 5 names different: declaration 'lsbitfirst' definition 'lsbf'. squeezelite-2.0.0-1541+git20250609.72e1fd8/dsd2pcm/dsd2pcm.c:170:48: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] squeezelite-2.0.0-1541+git20250609.72e1fd8/minimal_gpio.c:248:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROT_READ [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/minimal_gpio.c:259:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/minimal_gpio.c:139:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] squeezelite-2.0.0-1541+git20250609.72e1fd8/minimal_gpio.c:143:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] squeezelite-2.0.0-1541+git20250609.72e1fd8/minimal_gpio.c:168:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:115:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:195:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:214:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:220:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:226:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:251:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_PCM_STREAM_CAPTURE [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:385:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:409:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_PCM_STREAM_CAPTURE [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:492:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:601:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:627:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SND_PCM_FORMAT_LAST [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:325:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:343:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:341:11: note: err is assigned squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:343:11: note: err is overwritten squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:345:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:343:11: note: err is assigned squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:345:11: note: err is overwritten squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:347:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:345:11: note: err is assigned squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:347:11: note: err is overwritten squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:470:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:468:7: note: err is assigned squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:470:7: note: err is overwritten squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:472:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:470:7: note: err is assigned squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:472:7: note: err is overwritten squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:474:7: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:472:7: note: err is assigned squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:474:7: note: err is overwritten squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:516:19: style: Variable 'search' can be declared as pointer to const [constVariablePointer] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:597:18: style: Variable 'search' can be declared as pointer to const [constVariablePointer] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:609:18: style: Variable 'search' can be declared as pointer to const [constVariablePointer] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:424:109: error: Uninitialized variable: dir [uninitvar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:52:19: style: struct member 'aiopts::verbose' is never used. [unusedStructMember] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:347:11: style: Variable 'err' is assigned a value that is never used. [unreadVariable] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/alsacap.c:474:7: style: Variable 'err' is assigned a value that is never used. [unreadVariable] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/find_servers.c:106:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/find_servers.c:161:11: warning: Size of pointer 'packet' used instead of size of its data. [pointerSize] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/find_servers.c:171:11: warning: Size of pointer 'server_name' used instead of size of its data. [pointerSize] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/find_servers.c:172:11: warning: Size of pointer 'server_json' used instead of size of its data. [pointerSize] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/find_servers.c:284:6: style: Variable 'len' is assigned a value that is never used. [unreadVariable] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:71:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:90:19: warning: If memory allocation fails, then there is a possible null pointer dereference: newrpath [nullPointerOutOfMemory] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:89:20: note: Assuming allocation function fails squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:89:20: note: Assignment 'newrpath=strdup(argv[optind+1])', assigned value is 0 squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:90:19: note: Null pointer dereference squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:55:13: style: Variable 'scn_shdr' can be declared as pointer to const [constVariablePointer] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:56:13: style: Variable 'scn_ehdr' can be declared as pointer to const [constVariablePointer] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:61:7: style: Variable 'oldrpath' can be declared as pointer to const [constVariablePointer] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:112:15: style: Variable 'scn_ehdr' is assigned a value that is never used. [unreadVariable] squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:151:20: style: Variable 'strbuffersize' is assigned a value that is never used. [unreadVariable] diff: head squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:55:13: style: Variable 'scn_shdr' can be declared as pointer to const [constVariablePointer] head squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:56:13: style: Variable 'scn_ehdr' can be declared as pointer to const [constVariablePointer] head squeezelite-2.0.0-1541+git20250609.72e1fd8/tools/setrpath.c:61:7: style: Variable 'oldrpath' can be declared as pointer to const [constVariablePointer] DONE