2025-05-10 22:32 ftp://ftp.de.debian.org/debian/pool/main/g/gnomekiss/gnomekiss_2.0.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: beb3362 (2025-05-10 14:33:23 +0200) count: 96 97 elapsed-time: 10.6 10.7 head-timing-info: old-timing-info: head results: gnomekiss-2.0/src/callbacks.c:101:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_NORMAL [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/callbacks.c:183:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON_PRESS [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/callbacks.c:281:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_LEFT_PTR [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/callbacks.c:202:17: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gnomekiss-2.0/src/callbacks.c:139:58: style:inconclusive: Function 'on_set_clicked' argument 1 names different: declaration 'toolbutton' definition 'button'. [funcArgNamesDifferent] gnomekiss-2.0/src/callbacks.h:64:58: note: Function 'on_set_clicked' argument 1 names different: declaration 'toolbutton' definition 'button'. gnomekiss-2.0/src/callbacks.c:139:58: note: Function 'on_set_clicked' argument 1 names different: declaration 'toolbutton' definition 'button'. gnomekiss-2.0/src/callbacks.c:425:59: style:inconclusive: Function 'on_preferences_apply' argument 1 names different: declaration 'propertybox' definition 'gnomepropertybox'. [funcArgNamesDifferent] gnomekiss-2.0/src/callbacks.h:129:59: note: Function 'on_preferences_apply' argument 1 names different: declaration 'propertybox' definition 'gnomepropertybox'. gnomekiss-2.0/src/callbacks.c:425:59: note: Function 'on_preferences_apply' argument 1 names different: declaration 'propertybox' definition 'gnomepropertybox'. gnomekiss-2.0/src/callbacks.c:426:58: style:inconclusive: Function 'on_preferences_apply' argument 2 names different: declaration 'page_num' definition 'page'. [funcArgNamesDifferent] gnomekiss-2.0/src/callbacks.h:130:58: note: Function 'on_preferences_apply' argument 2 names different: declaration 'page_num' definition 'page'. gnomekiss-2.0/src/callbacks.c:426:58: note: Function 'on_preferences_apply' argument 2 names different: declaration 'page_num' definition 'page'. gnomekiss-2.0/src/callbacks.c:576:58: style:inconclusive: Function 'on_unfix_clicked' argument 1 names different: declaration 'toolbutton' definition 'button'. [funcArgNamesDifferent] gnomekiss-2.0/src/callbacks.h:68:58: note: Function 'on_unfix_clicked' argument 1 names different: declaration 'toolbutton' definition 'button'. gnomekiss-2.0/src/callbacks.c:576:58: note: Function 'on_unfix_clicked' argument 1 names different: declaration 'toolbutton' definition 'button'. gnomekiss-2.0/src/cnf.c:117:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/cnf.c:138:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/callbacks.c:37:57: style: Parameter 'menuitem' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/callbacks.c:38:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/callbacks.c:47:58: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/callbacks.c:48:58: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/callbacks.c:49:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/callbacks.c:118:58: style: Parameter 'widget' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/callbacks.c:119:60: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/callbacks.c:120:58: style: Parameter 'user_data' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/callbacks.c:179:58: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/callbacks.c:273:58: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/cell.c:38:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/cell.c:195:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/cell.c:385:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/cell.c:431:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/collision.c:43:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/collision.c:76:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/collision.c:197:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/collision.c:215:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/cnf.c:145:12: style: Obsolete function 'g_dirname' called. It is recommended to use 'g_path_get_dirname' instead. [prohibitedg_dirnameCalled] gnomekiss-2.0/src/cnf.c:149:29: style: Obsolete function 'g_basename' called. It is recommended to use 'g_path_get_basename' instead. [prohibitedg_basenameCalled] gnomekiss-2.0/src/cnf.c:354:7: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gnomekiss-2.0/src/cnf.c:354:7: warning: %u in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] gnomekiss-2.0/src/cnf.c:386:3: warning:inconclusive: Width 20 given in format string (no. 1) is smaller than destination buffer 'filename[32]'. [invalidScanfFormatWidth_smaller] gnomekiss-2.0/src/cnf.c:339:34: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/cnf.c:351:31: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/cnf.c:374:34: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/cell.c:387:10: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] gnomekiss-2.0/src/cell.c:432:10: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] gnomekiss-2.0/src/cell.c:58:32: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] gnomekiss-2.0/src/cell.c:206:11: style: Variable 'begin' can be declared as pointer to const [constVariablePointer] gnomekiss-2.0/src/collision.c:82:10: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] gnomekiss-2.0/src/collision.c:84:10: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] gnomekiss-2.0/src/collision.c:97:10: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] gnomekiss-2.0/src/collision.c:103:14: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] gnomekiss-2.0/src/collision.c:64:24: style: Local variable 'events' shadows outer function [shadowFunction] gnomekiss-2.0/src/kiss.h:322:6: note: Shadowed declaration gnomekiss-2.0/src/collision.c:64:24: note: Shadow variable gnomekiss-2.0/src/collision.c:172:38: style: Parameter 'cell1' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/collision.c:172:55: style: Parameter 'cell2' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/event.c:81:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/event.c:90:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/event.c:99:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/event.c:109:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/event.c:119:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/event.c:176:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/event.c:632:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mapped [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/event.c:955:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/interface.c:323:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable widget [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/interface.c:748:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_TYPE_HINT_DIALOG [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/interface.c:790:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_TYPE_HINT_DIALOG [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/interface.c:834:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/interface.c:929:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_TYPE_HINT_DIALOG [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/interface.c:997:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WINDOW_TYPE_HINT_DIALOG [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/interface.c:1243:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/interface.c:838:11: 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] gnomekiss-2.0/src/event.c:148:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gnomekiss-2.0/src/event.c:150:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] gnomekiss-2.0/src/lzh.c:50:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/event.c:55:7: style: Variable 'to' is assigned a value that is never used. [unreadVariable] gnomekiss-2.0/src/lzh.c:48:3: warning: Return value of function mktemp() is not used. [ignoredReturnValue] gnomekiss-2.0/src/lzh.c:48:3: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] gnomekiss-2.0/src/lzh.c:120:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] gnomekiss-2.0/src/lzh.c:143:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] gnomekiss-2.0/src/lzh.c:146:40: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gnomekiss-2.0/src/lzh.c:145:21: note: Assuming allocation function fails gnomekiss-2.0/src/lzh.c:145:21: note: Assignment 'filename=strdup(dirent->d_name)', assigned value is 0 gnomekiss-2.0/src/lzh.c:146:40: note: Null pointer addition gnomekiss-2.0/src/lzh.c:113:18: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] gnomekiss-2.0/src/lzh.c:134:18: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] gnomekiss-2.0/src/support.c:92:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/main.c:131:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DEST_DEFAULT_ALL [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/main.c:36:30: style: Parameter 'toggle' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/util.c:61:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ALLOC_ONLY [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/util.c:288:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/timer.c:108:3: warning: Either the condition 'new_timer' is redundant or there is possible null pointer dereference: new_timer. [nullPointerRedundantCheck] gnomekiss-2.0/src/timer.c:113:9: note: Assuming that condition 'new_timer' is not redundant gnomekiss-2.0/src/timer.c:108:3: note: Null pointer dereference gnomekiss-2.0/src/util.c:131:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] gnomekiss-2.0/src/util.c:132:10: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] gnomekiss-2.0/src/util.c:300:18: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] gnomekiss-2.0/src/util.c:126:18: style: Variable 'dirent' can be declared as pointer to const [constVariablePointer] gnomekiss-2.0/src/util.c:351:21: style: Parameter 'integer' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/variable.c:38:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/variable.c:49:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/variable.c:59:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/variable.c:40:10: style: g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. [prohibitedg_strcasecmpCalled] gnomekiss-2.0/src/variable.c:47:33: style: Parameter 'var' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/french.c:48:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ALLOC_ONLY [valueFlowBailoutIncompleteVar] gnomekiss-2.0/src/french.c:497:42: error: Array 'action->args[3]' accessed at index 3, which is out of bounds. [arrayIndexOutOfBounds] gnomekiss-2.0/src/french.c:515:11: error: Width 512 given in format string (no. 3) is larger than destination buffer 'rest[512]', use %511[^;] to prevent overflowing it. [invalidScanfFormatWidth] gnomekiss-2.0/src/french.c:519:13: error: Width 512 given in format string (no. 2) is larger than destination buffer 'rest[512]', use %511[^;] to prevent overflowing it. [invalidScanfFormatWidth] gnomekiss-2.0/src/french.c:53:24: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] gnomekiss-2.0/src/french.c:504:26: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] diff: 2.17.0 gnomekiss-2.0/src/lzh.c:146:40: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gnomekiss-2.0/src/lzh.c:145:21: note: Assuming allocation function fails gnomekiss-2.0/src/lzh.c:145:21: note: Assignment 'filename=strdup(dirent->d_name)', assigned value is 0 gnomekiss-2.0/src/lzh.c:146:40: note: Null pointer addition head gnomekiss-2.0/src/lzh.c:146:40: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gnomekiss-2.0/src/lzh.c:145:21: note: Assuming allocation function fails gnomekiss-2.0/src/lzh.c:145:21: note: Assignment 'filename=strdup(dirent->d_name)', assigned value is 0 gnomekiss-2.0/src/lzh.c:146:40: note: Null pointer addition 2.17.0 gnomekiss-2.0/src/util.c:180:13: warning: If memory allocation fails, then there is a possible null pointer dereference: temp [nullPointerOutOfMemory] gnomekiss-2.0/src/util.c:178:18: note: Assuming allocation function fails gnomekiss-2.0/src/util.c:178:18: note: Assignment 'temp=g_strdup(path)', assigned value is 0 gnomekiss-2.0/src/util.c:180:13: note: Null pointer dereference DONE