2026-01-22 05:30 ftp://ftp.de.debian.org/debian/pool/main/g/gkrellm-mailwatch/gkrellm-mailwatch_2.4.3.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 -j4 platform: Linux-6.12.63+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.69 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.19.0 head-info: fd1019a (2026-01-21 23:49:23 +0100) count: 56 56 elapsed-time: 0.4 0.9 head-timing-info: old-timing-info: head results: gkrellm-mailwatch-2.4.3/mailwatch.c:55:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:82:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:94:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:149:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:182:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:257:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:310:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:348:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:417:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:422:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:438:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:449:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:493:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second_tick [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:663:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:709:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:728:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:743:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:774:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:819:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:868:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:897:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:1077:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:1112:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:1284:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_POS_TOP [valueFlowBailoutIncompleteVar] gkrellm-mailwatch-2.4.3/mailwatch.c:398:5: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] gkrellm-mailwatch-2.4.3/mailwatch.c:62:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gkrellm-mailwatch-2.4.3/mailwatch.c:451:10: warning: If memory allocation fails, then there is a possible null pointer dereference: command [nullPointerOutOfMemory] gkrellm-mailwatch-2.4.3/mailwatch.c:450:19: note: Assuming allocation function fails gkrellm-mailwatch-2.4.3/mailwatch.c:450:19: note: Assignment 'command=malloc((strlen(panel->command)+4)*sizeof(char))', assigned value is 0 gkrellm-mailwatch-2.4.3/mailwatch.c:451:10: note: Null pointer dereference gkrellm-mailwatch-2.4.3/mailwatch.c:452:17: warning: If memory allocation fails, then there is a possible null pointer dereference: command [nullPointerOutOfMemory] gkrellm-mailwatch-2.4.3/mailwatch.c:450:19: note: Assuming allocation function fails gkrellm-mailwatch-2.4.3/mailwatch.c:450:19: note: Assignment 'command=malloc((strlen(panel->command)+4)*sizeof(char))', assigned value is 0 gkrellm-mailwatch-2.4.3/mailwatch.c:452:17: note: Null pointer dereference gkrellm-mailwatch-2.4.3/mailwatch.c:1417:10: warning: If memory allocation fails, then there is a possible null pointer dereference: command [nullPointerOutOfMemory] gkrellm-mailwatch-2.4.3/mailwatch.c:1416:19: note: Assuming allocation function fails gkrellm-mailwatch-2.4.3/mailwatch.c:1416:19: note: Assignment 'command=malloc((p-arg+1)*sizeof(char))', assigned value is 0 gkrellm-mailwatch-2.4.3/mailwatch.c:1417:10: note: Null pointer dereference gkrellm-mailwatch-2.4.3/mailwatch.c:1418:10: warning: If memory allocation fails, then there is a possible null pointer dereference: command [nullPointerOutOfMemory] gkrellm-mailwatch-2.4.3/mailwatch.c:1416:19: note: Assuming allocation function fails gkrellm-mailwatch-2.4.3/mailwatch.c:1416:19: note: Assignment 'command=malloc((p-arg+1)*sizeof(char))', assigned value is 0 gkrellm-mailwatch-2.4.3/mailwatch.c:1418:10: note: Null pointer dereference gkrellm-mailwatch-2.4.3/mailwatch.c:50:38: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] gkrellm-mailwatch-2.4.3/mailwatch.c:110:18: style: Variable 'de' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:134:10: style: Variable 'file' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:251:18: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:284:14: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:284:27: style: Variable 'tmp1' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:306:23: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] gkrellm-mailwatch-2.4.3/mailwatch.c:337:44: style: Parameter 's' can be declared as pointer to const [constParameterPointer] gkrellm-mailwatch-2.4.3/mailwatch.c:445:69: style: Parameter 'panel' can be declared as pointer to const. However it seems that 'button_release' is a callback function, if 'panel' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gkrellm-mailwatch-2.4.3/mailwatch.c:654:40: note: You might need to cast the function pointer here gkrellm-mailwatch-2.4.3/mailwatch.c:445:69: note: Parameter 'panel' can be declared as pointer to const gkrellm-mailwatch-2.4.3/mailwatch.c:485:21: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:629:20: style: Variable 'bg_image' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:672:24: style: Parameter 'name' can be declared as const array [constParameter] gkrellm-mailwatch-2.4.3/mailwatch.c:704:22: style: Parameter 'name' can be declared as const array [constParameter] gkrellm-mailwatch-2.4.3/mailwatch.c:704:38: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] gkrellm-mailwatch-2.4.3/mailwatch.c:723:20: style: Parameter 'name' can be declared as const array [constParameter] gkrellm-mailwatch-2.4.3/mailwatch.c:736:20: style: Parameter 'name' can be declared as const array [constParameter] gkrellm-mailwatch-2.4.3/mailwatch.c:736:34: style: Parameter 'path' can be declared as const array [constParameter] gkrellm-mailwatch-2.4.3/mailwatch.c:739:10: style: Variable 'list' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:757:10: style: Variable 'list2' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:767:24: style: Parameter 'name' can be declared as const array [constParameter] gkrellm-mailwatch-2.4.3/mailwatch.c:951:33: style: Parameter 'button' can be declared as pointer to const. However it seems that 'button_toggle' is a callback function, if 'button' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gkrellm-mailwatch-2.4.3/mailwatch.c:1345:38: note: You might need to cast the function pointer here gkrellm-mailwatch-2.4.3/mailwatch.c:951:33: note: Parameter 'button' can be declared as pointer to const gkrellm-mailwatch-2.4.3/mailwatch.c:975:37: style: Parameter 'adj' can be declared as pointer to const. However it seems that 'canimations_changed' is a callback function, if 'adj' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gkrellm-mailwatch-2.4.3/mailwatch.c:1357:38: note: You might need to cast the function pointer here gkrellm-mailwatch-2.4.3/mailwatch.c:975:37: note: Parameter 'adj' can be declared as pointer to const gkrellm-mailwatch-2.4.3/mailwatch.c:975:53: style: Parameter 'data' can be declared as pointer to const. However it seems that 'canimations_changed' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gkrellm-mailwatch-2.4.3/mailwatch.c:1357:38: note: You might need to cast the function pointer here gkrellm-mailwatch-2.4.3/mailwatch.c:975:53: note: Parameter 'data' can be declared as pointer to const gkrellm-mailwatch-2.4.3/mailwatch.c:1086:58: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] gkrellm-mailwatch-2.4.3/mailwatch.c:1390:10: style: Variable 'mpath' can be declared as pointer to const [constVariablePointer] gkrellm-mailwatch-2.4.3/mailwatch.c:633:12: style: Variable 'bg_image' is assigned a value that is never used. [unreadVariable] diff: DONE