2025-11-27 09:27 ftp://ftp.de.debian.org/debian/pool/main/k/kgx/kgx_0.2.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.8.0-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 9486fde (2025-11-26 08:20:02 +0100) count: 95 95 elapsed-time: 3.6 4.3 head-timing-info: old-timing-info: head results: kgx-0.2.1/src/fp-vte-util.c:68:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/fp-vte-util.c:89:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPtrArray [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/fp-vte-util.c:139:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTask [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/fp-vte-util.c:182:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPtrArray [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/fp-vte-util.c:278:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VTE_PTY_NO_CTTY [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/fp-vte-util.c:69:40: error: Invalid g_once_init_leave() argument nr 2. The value is 0 or 1 (boolean) but the valid values are '1:'. [invalidFunctionArg] kgx-0.2.1/src/fp-vte-util.c:191:13: style: Variable 'timeout' is assigned a value that is never used. [unreadVariable] kgx-0.2.1/src/kgx-application.c:365:43: error: There is an unknown macro here somewhere. Configuration is required. If RES_PATH is a macro then please configure it. [unknownMacro] kgx-0.2.1/src/kgx-close-dialog-row.c:98:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kgx_close_dialog_row_parent_class [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-close-dialog-row.c:143:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RES_PATH [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-close-dialog-row.c:50:50: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'kgx_close_dialog_row_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-close-dialog-row.c:107:32: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-close-dialog-row.c:50:50: note: Parameter 'pspec' can be declared as pointer to const kgx-0.2.1/src/kgx-close-dialog-row.c:73:48: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'kgx_close_dialog_row_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-close-dialog-row.c:108:32: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-close-dialog-row.c:73:48: note: Parameter 'pspec' can be declared as pointer to const kgx-0.2.1/src/kgx-close-dialog.c:44:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RES_PATH [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-close-dialog.c:51:34: style: Parameter 'before' can be declared as pointer to const. However it seems that 'separator_header' is a callback function, if 'before' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-close-dialog.c:78:33: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-close-dialog.c:51:34: note: Parameter 'before' can be declared as pointer to const kgx-0.2.1/src/kgx-process-dummy.c:28:32: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] kgx-0.2.1/src/kgx-process-dummy.c:34:57: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] kgx-0.2.1/src/kgx-process.c:193:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GStrv [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-process.c:249:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-process.c:44:28: style: Parameter 'self' can be declared as pointer to const. However it seems that 'clear_process' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-process.c:66:49: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-process.c:44:28: note: Parameter 'self' can be declared as pointer to const kgx-0.2.1/src/kgx-process.c:111:34: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] kgx-0.2.1/src/kgx-process.c:129:34: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] kgx-0.2.1/src/kgx-process.c:147:38: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] kgx-0.2.1/src/kgx-process.c:170:37: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] kgx-0.2.1/src/kgx-process.c:220:57: style: Parameter 'data' can be declared as pointer to const. However it seems that 'kgx_pid_cmp' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-process.c:252:27: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-process.c:220:57: note: Parameter 'data' can be declared as pointer to const kgx-0.2.1/src/kgx-terminal.c:234:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:287:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_READWRITE [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:301:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_CURRENT_TIME [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:321:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:331:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VTE_FORMAT_TEXT [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:348:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:361:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:402:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_SELECTION_CLIPBOARD [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:462:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DBUS_CALL_FLAGS_NONE [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:563:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VteRegex [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-terminal.c:90:5: error: Array '"241f31"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:91:5: error: Array '"c01c28"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:92:5: error: Array '"2ec27e"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:93:5: error: Array '"f5c211"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:94:5: error: Array '"1e78e4"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:95:5: error: Array '"9841bb"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:96:5: error: Array '"0ab9dc"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:97:5: error: Array '"c0bfbc"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:98:5: error: Array '"5e5c64"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:99:5: error: Array '"ed333b"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:100:5: error: Array '"57e389"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:101:5: error: Array '"f8e45c"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:102:5: error: Array '"51a1ff"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:103:5: error: Array '"c061cb"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:104:5: error: Array '"4fd2fd"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:105:5: error: Array '"f6f5f4"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-terminal.c:143:42: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'kgx_terminal_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-terminal.c:249:32: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-terminal.c:143:42: note: Parameter 'pspec' can be declared as pointer to const kgx-0.2.1/src/kgx-terminal.c:164:40: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'kgx_terminal_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-terminal.c:250:32: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-terminal.c:164:40: note: Parameter 'pspec' can be declared as pointer to const kgx-0.2.1/src/kgx-window.c:123:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:178:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:228:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VtePty [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:352:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_hash_table_unref [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:423:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BINDING_BIDIRECTIONAL [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:473:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCRE2_MULTILINE [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:538:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:554:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SOURCE_REMOVE [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:631:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_PARAM_CONSTRUCT_ONLY [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:697:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:725:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:800:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFile [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:881:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_BINDING_SYNC_CREATE [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:904:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFile [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:1021:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GNotification [valueFlowBailoutIncompleteVar] kgx-0.2.1/src/kgx-window.c:74:5: error: Array '"241f31"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:75:5: error: Array '"c01c28"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:76:5: error: Array '"2ec27e"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:77:5: error: Array '"f5c211"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:78:5: error: Array '"1e78e4"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:79:5: error: Array '"9841bb"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:80:5: error: Array '"0ab9dc"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:81:5: error: Array '"c0bfbc"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:82:5: error: Array '"5e5c64"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:83:5: error: Array '"ed333b"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:84:5: error: Array '"57e389"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:85:5: error: Array '"f8e45c"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:86:5: error: Array '"51a1ff"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:87:5: error: Array '"c061cb"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:88:5: error: Array '"4fd2fd"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:89:5: error: Array '"f6f5f4"[7]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] kgx-0.2.1/src/kgx-window.c:988:5: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] kgx-0.2.1/src/kgx-window.c:716:1: error: Memory leak: window [memleak] kgx-0.2.1/src/kgx-window.c:982:7: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] kgx-0.2.1/src/kgx-window.c:289:40: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'kgx_window_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-window.c:601:32: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-window.c:289:40: note: Parameter 'pspec' can be declared as pointer to const kgx-0.2.1/src/kgx-window.c:316:38: style: Parameter 'pspec' can be declared as pointer to const. However it seems that 'kgx_window_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-window.c:602:32: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-window.c:316:38: note: Parameter 'pspec' can be declared as pointer to const kgx-0.2.1/src/kgx-window.c:405:39: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'kgx_window_delete_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-window.c:605:32: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-window.c:405:39: note: Parameter 'widget' can be declared as pointer to const kgx-0.2.1/src/kgx-window.c:406:39: style: Parameter 'event' can be declared as pointer to const. However it seems that 'kgx_window_delete_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] kgx-0.2.1/src/kgx-window.c:605:32: note: You might need to cast the function pointer here kgx-0.2.1/src/kgx-window.c:406:39: note: Parameter 'event' can be declared as pointer to const kgx-0.2.1/src/kgx-window.c:695:20: style: Variable 'app' can be declared as pointer to const [constVariablePointer] kgx-0.2.1/src/kgx-window.c:944:38: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] kgx-0.2.1/src/kgx-window.c:945:38: style: Parameter 'process' can be declared as pointer to const [constParameterPointer] kgx-0.2.1/src/kgx-window.c:1007:12: style: Variable 'id' is assigned a value that is never used. [unreadVariable] kgx-0.2.1/src/main.c:26:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GtkApplication [valueFlowBailoutIncompleteVar] diff: DONE