2026-06-05 15:32 ftp://ftp.de.debian.org/debian/pool/main/r/root-tail/root-tail_1.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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-124-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.21.0 head-info: 707f262 (2026-06-05 16:56:00 +0200) count: 47 47 elapsed-time: 1.6 1.4 head-timing-info: old-timing-info: head results: root-tail-1.3/root-tail.c:189:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:225:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:252:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XA_WINDOW [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:298:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:408:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:720:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:1000:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:1311:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:1575:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SA_RESTART [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:1588:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:1602:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:1616:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] root-tail-1.3/root-tail.c:372:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] root-tail-1.3/root-tail.c:1387:19: warning: %li in format string (no. 1) requires 'long *' but the argument type is 'unsigned long *'. [invalidScanfArgType_int] root-tail-1.3/root-tail.c:693:3: warning: If memory allocation fails, then there is a possible null pointer dereference: r [nullPointerOutOfMemory] root-tail-1.3/root-tail.c:690:17: note: Assuming allocation function fails root-tail-1.3/root-tail.c:690:17: note: Assignment 'r=xmalloc(l2+1)', assigned value is 0 root-tail-1.3/root-tail.c:693:3: note: Null pointer dereference root-tail-1.3/root-tail.c:958:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] root-tail-1.3/root-tail.c:1045:19: note: Assuming allocation function fails root-tail-1.3/root-tail.c:1045:19: note: Assignment 'p=xstrdup(p)', assigned value is 0 root-tail-1.3/root-tail.c:958:15: note: Null pointer dereference root-tail-1.3/root-tail.c:1084:22: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] root-tail-1.3/root-tail.c:1192:34: note: Assuming allocation function fails root-tail-1.3/root-tail.c:1192:34: note: Calling function 'insert_new_line', 1st argument 'xstrdup("[")' value is 0 root-tail-1.3/root-tail.c:1084:22: note: Null pointer dereference root-tail-1.3/root-tail.c:692:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] root-tail-1.3/root-tail.c:690:17: note: Assuming allocation function fails root-tail-1.3/root-tail.c:690:17: note: Assignment 'r=xmalloc(l2+1)', assigned value is 0 root-tail-1.3/root-tail.c:692:13: note: Null pointer addition root-tail-1.3/root-tail.c:185:17: style:inconclusive: Function 'list_files' argument 1 names different: declaration '' definition 'dummy'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:195:19: style:inconclusive: Function 'force_reopen' argument 1 names different: declaration '' definition 'dummy'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:201:20: style:inconclusive: Function 'force_refresh' argument 1 names different: declaration '' definition 'dummy'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:207:19: style:inconclusive: Function 'blank_window' argument 1 names different: declaration '' definition 'dummy'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:216:23: style:inconclusive: Function 'GetColor' argument 1 names different: declaration '' definition 'ColorName'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:406:13: style:inconclusive: Function 'redraw' argument 1 names different: declaration '' definition 'redraw_all'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:446:14: style:inconclusive: Function 'refresh' argument 1 names different: declaration '' definition 'miny'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:446:24: style:inconclusive: Function 'refresh' argument 2 names different: declaration '' definition 'maxy'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:446:34: style:inconclusive: Function 'refresh' argument 3 names different: declaration '' definition 'clear'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:446:45: style:inconclusive: Function 'refresh' argument 4 names different: declaration '' definition 'refresh_all'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:702:34: style:inconclusive: Function 'lineinput' argument 1 names different: declaration '' definition 'logfile'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:771:32: style:inconclusive: Function 'openlog' argument 1 names different: declaration '' definition 'file'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:1569:21: style:inconclusive: Function 'install_signal' argument 1 names different: declaration '' definition 'sig'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:1569:33: style:inconclusive: Function 'install_signal' argument 2 names different: declaration '' definition 'handler'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:1582:22: style:inconclusive: Function 'xstrdup' argument 1 names different: declaration '' definition 'string'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:1596:17: style:inconclusive: Function 'xmalloc' argument 1 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:1610:17: style:inconclusive: Function 'xrealloc' argument 1 names different: declaration '' definition 'ptr'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:1610:29: style:inconclusive: Function 'xrealloc' argument 2 names different: declaration '' definition 'size'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:1624:21: style:inconclusive: Function 'display_help' argument 1 names different: declaration '' definition 'myname'. [funcArgNamesDifferentUnnamed] root-tail-1.3/root-tail.c:234:28: style: Argument 'display' shadows outer variable [shadowVariable] root-tail-1.3/root-tail.c:113:30: note: Shadowed variable root-tail-1.3/root-tail.c:234:28: note: Shadow argument root-tail-1.3/root-tail.c:388:27: style: Local variable 'e' shadows outer variable [shadowVariable] root-tail-1.3/root-tail.c:294:25: note: Shadowed variable root-tail-1.3/root-tail.c:388:27: note: Shadow local variable root-tail-1.3/root-tail.c:413:21: style: Argument 'disp' shadows outer variable [shadowVariable] root-tail-1.3/root-tail.c:138:17: note: Shadowed variable root-tail-1.3/root-tail.c:413:21: note: Shadow argument root-tail-1.3/root-tail.c:413:34: style: Argument 'root' shadows outer variable [shadowVariable] root-tail-1.3/root-tail.c:139:15: note: Shadowed variable root-tail-1.3/root-tail.c:413:34: note: Shadow argument root-tail-1.3/root-tail.c:413:43: style: Argument 'WinGC' shadows outer variable [shadowVariable] root-tail-1.3/root-tail.c:140:11: note: Shadowed variable root-tail-1.3/root-tail.c:413:43: note: Shadow argument root-tail-1.3/root-tail.c:187:25: style: Variable 'e' can be declared as pointer to const [constVariablePointer] root-tail-1.3/root-tail.c:1624:21: style: Parameter 'myname' can be declared as pointer to const [constParameterPointer] root-tail-1.3/root-tail.c:454:18: style: Variable 'foreground' is assigned a value that is never used. [unreadVariable] root-tail-1.3/root-tail.c:746:9: style: Variable 'p' is assigned a value that is never used. [unreadVariable] root-tail-1.3/root-tail.c:682:20: warning: If memory allocation fails, then there is a possible null pointer dereference: p2 [ctunullpointerOutOfMemory] root-tail-1.3/root-tail.c:1193:42: note: Assuming allocation function fails root-tail-1.3/root-tail.c:1193:42: note: Calling function 'append_to_existing_line', 1st argument 'xstrdup(current->desc)' value is 0 root-tail-1.3/root-tail.c:1105:21: note: Calling function concat_line, 2nd argument is null root-tail-1.3/root-tail.c:682:20: note: Dereferencing argument p2 that is null diff: DONE