2026-10-06 04:21 ftp://ftp.de.debian.org/debian/pool/main/d/darksnow/darksnow_0.7.1.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 -j1 platform: Linux-6.12.107+deb13-amd64-x86_64-with-glibc2.41 python: 3.12.14 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.22.0 head-info: 746b3a7 (2026-10-04 08:53:56 +0200) count: 84 84 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: darksnow-0.7.1/config_files.c:315:34: style: Redundant condition: The condition 'remotedump[i] != 0' is redundant since 'remotedump[i] == ' '' is sufficient. [redundantCondition] darksnow-0.7.1/config_files.c:321:33: style: Redundant condition: The condition 'localdump[i] != 0' is redundant since 'localdump[i] == ' '' is sufficient. [redundantCondition] darksnow-0.7.1/config_files.c:184:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:185:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:186:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:187:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:188:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:189:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:190:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:191:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:192:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:193:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:194:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:195:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:196:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:197:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:198:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:199:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:200:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:201:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:202:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:204:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:205:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:206:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/config_files.c:43:48: style: Parameter 'save_path' can be declared as pointer to const [constParameterPointer] darksnow-0.7.1/config_files.c:46:9: style: Variable 'server' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:47:9: style: Variable 'port' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:48:9: style: Variable 'mountpoint' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:49:9: style: Variable 'pass' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:50:9: style: Variable 'remotedump' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:51:9: style: Variable 'localdump' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:52:9: style: Variable 'radioname' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:54:9: style: Variable 'description' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:55:9: style: Variable 'url' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:56:9: style: Variable 'genre' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:57:9: style: Variable 'icecast' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:58:9: style: Variable 'format' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:59:9: style: Variable 'bitrate' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:60:9: style: Variable 'bitratemode' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:61:9: style: Variable 'samplerate' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:62:9: style: Variable 'quality' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:63:9: style: Variable 'bitspersample' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:64:9: style: Variable 'channel' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:65:9: style: Variable 'buffersize' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:66:9: style: Variable 'device' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:67:9: style: Variable 'public' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/config_files.c:68:9: style: Variable 'verbosity' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/darksnow.c:59:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] darksnow-0.7.1/darksnow.c:148:10: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] darksnow-0.7.1/darksnow.c:118:12: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/darksnow.c:51:42: style: Parameter 'envp' can be declared as const array [constParameter] darksnow-0.7.1/interface.c:147:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] darksnow-0.7.1/interface.c:228:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] darksnow-0.7.1/interface.c:243:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] darksnow-0.7.1/interface.c:104:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] darksnow-0.7.1/interface.c:165:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:166:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:167:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:168:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:169:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:170:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:171:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:172:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:173:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:174:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:175:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:176:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:177:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:178:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:179:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:180:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:181:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:182:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:183:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:184:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:185:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:186:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:187:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:270:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:305:3: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] darksnow-0.7.1/interface.c:58:9: style: Variable 'darkice_verbosity' can be declared as pointer to const [constVariablePointer] darksnow-0.7.1/interface.c:325:34: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'delete_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] darksnow-0.7.1/interface.c:384:3: note: You might need to cast the function pointer here darksnow-0.7.1/interface.c:325:34: note: Parameter 'widget' can be declared as pointer to const darksnow-0.7.1/interface.c:325:53: style: Parameter 'event' can be declared as pointer to const. However it seems that 'delete_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] darksnow-0.7.1/interface.c:384:3: note: You might need to cast the function pointer here darksnow-0.7.1/interface.c:325:53: note: Parameter 'event' can be declared as pointer to const darksnow-0.7.1/interface.c:325:69: style: Parameter 'data' can be declared as pointer to const. However it seems that 'delete_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] darksnow-0.7.1/interface.c:384:3: note: You might need to cast the function pointer here darksnow-0.7.1/interface.c:325:69: note: Parameter 'data' can be declared as pointer to const diff: DONE