2026-05-01 23:51 ftp://ftp.de.debian.org/debian/pool/main/g/g3data/g3data_1.5.3.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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 57 57 elapsed-time: 0.9 0.8 head-timing-info: old-timing-info: head results: g3data-1.5.3/drawing.c:80:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GdkColor [valueFlowBailoutIncompleteVar] g3data-1.5.3/sort.c:53:34: style: Parameter 'RealPos' can be declared as pointer to const [constParameterPointer] g3data-1.5.3/drawing.c:84:3: warning: If memory allocation fails, then there is a possible null pointer dereference: *color [nullPointerOutOfMemory] g3data-1.5.3/drawing.c:80:34: note: Assuming allocation function fails g3data-1.5.3/drawing.c:80:14: note: Assignment '*color=(GdkColor*)calloc(ncolors,sizeof(GdkColor))', assigned value is 0 g3data-1.5.3/drawing.c:84:3: note: Null pointer dereference g3data-1.5.3/points.c:174:2: warning: If memory allocation fails, then there is a possible null pointer dereference: RealPos [nullPointerOutOfMemory] g3data-1.5.3/points.c:168:43: note: Assuming allocation function fails g3data-1.5.3/points.c:168:15: note: Assignment 'RealPos=(struct PointValue*)malloc(sizeof(struct PointValue)*numpoints[ViewedTabNum])', assigned value is 0 g3data-1.5.3/points.c:174:2: note: Null pointer dereference g3data-1.5.3/points.c:175:2: warning: If memory allocation fails, then there is a possible null pointer dereference: RealPos [nullPointerOutOfMemory] g3data-1.5.3/points.c:168:43: note: Assuming allocation function fails g3data-1.5.3/points.c:168:15: note: Assignment 'RealPos=(struct PointValue*)malloc(sizeof(struct PointValue)*numpoints[ViewedTabNum])', assigned value is 0 g3data-1.5.3/points.c:175:2: note: Null pointer dereference g3data-1.5.3/points.c:176:2: warning: If memory allocation fails, then there is a possible null pointer dereference: RealPos [nullPointerOutOfMemory] g3data-1.5.3/points.c:168:43: note: Assuming allocation function fails g3data-1.5.3/points.c:168:15: note: Assignment 'RealPos=(struct PointValue*)malloc(sizeof(struct PointValue)*numpoints[ViewedTabNum])', assigned value is 0 g3data-1.5.3/points.c:176:2: note: Null pointer dereference g3data-1.5.3/points.c:177:2: warning: If memory allocation fails, then there is a possible null pointer dereference: RealPos [nullPointerOutOfMemory] g3data-1.5.3/points.c:168:43: note: Assuming allocation function fails g3data-1.5.3/points.c:168:15: note: Assignment 'RealPos=(struct PointValue*)malloc(sizeof(struct PointValue)*numpoints[ViewedTabNum])', assigned value is 0 g3data-1.5.3/points.c:177:2: note: Null pointer dereference g3data-1.5.3/main.c:319:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:380:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_RGB_DITHER_NONE [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:411:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:451:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:514:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable active [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:541:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable window [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:622:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Left [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:668:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Control_L [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:696:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:831:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:1236:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_DESTROY_WITH_PARENT [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:1289:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_OPEN [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:1596:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] g3data-1.5.3/main.c:843:5: warning:inconclusive: The buffer 'buf2' may not be null-terminated after the call to strncpy(). [terminateStrncpy] g3data-1.5.3/main.c:970:15: style: gtk_hbox_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_HORIZONTAL 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_hbox_newCalled] g3data-1.5.3/main.c:975:18: style: gtk_hbox_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_HORIZONTAL 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_hbox_newCalled] g3data-1.5.3/main.c:980:14: 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] g3data-1.5.3/main.c:999:14: 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] g3data-1.5.3/main.c:1034:14: 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] g3data-1.5.3/main.c:1037:15: 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] g3data-1.5.3/main.c:1042:15: 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] g3data-1.5.3/main.c:1054:15: 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] g3data-1.5.3/main.c:1077:15: 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] g3data-1.5.3/main.c:1106:15: 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] g3data-1.5.3/main.c:1160:14: 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] g3data-1.5.3/main.c:1300:17: style: gtk_hbox_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_HORIZONTAL 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_hbox_newCalled] g3data-1.5.3/main.c:1601:16: 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] g3data-1.5.3/main.c:121:35: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'close_application' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:1604:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:121:35: note: Parameter 'widget' can be declared as pointer to const g3data-1.5.3/main.c:121:53: style: Parameter 'event' can be declared as pointer to const. However it seems that 'close_application' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:1604:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:121:53: note: Parameter 'event' can be declared as pointer to const g3data-1.5.3/main.c:121:69: style: Parameter 'data' can be declared as pointer to const. However it seems that 'close_application' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:1604:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:121:69: note: Parameter 'data' can be declared as pointer to const g3data-1.5.3/main.c:175:76: style: Parameter 'data' can be declared as pointer to const. However it seems that 'button_press_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:744:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:175:76: note: Parameter 'data' can be declared as pointer to const g3data-1.5.3/main.c:288:38: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'button_release_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:747:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:288:38: note: Parameter 'widget' can be declared as pointer to const g3data-1.5.3/main.c:288:62: style: Parameter 'event' can be declared as pointer to const. However it seems that 'button_release_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:747:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:288:62: note: Parameter 'event' can be declared as pointer to const g3data-1.5.3/main.c:288:78: style: Parameter 'data' can be declared as pointer to const. However it seems that 'button_release_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:747:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:288:78: note: Parameter 'data' can be declared as pointer to const g3data-1.5.3/main.c:305:77: style: Parameter 'data' can be declared as pointer to const. However it seems that 'motion_notify_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:750:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:305:77: note: Parameter 'data' can be declared as pointer to const g3data-1.5.3/main.c:370:77: style: Parameter 'data' can be declared as pointer to const. However it seems that 'expose_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:738:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:370:77: note: Parameter 'data' can be declared as pointer to const g3data-1.5.3/main.c:394:33: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'configure_event' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:741:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:394:33: note: Parameter 'widget' can be declared as pointer to const g3data-1.5.3/main.c:394:60: style: Parameter 'event' can be declared as pointer to const. However it seems that 'configure_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:741:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:394:60: note: Parameter 'event' can be declared as pointer to const g3data-1.5.3/main.c:394:75: style: Parameter 'data' can be declared as pointer to const. However it seems that 'configure_event' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:741:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:394:75: note: Parameter 'data' can be declared as pointer to const g3data-1.5.3/main.c:405:44: style: Parameter 'func_data' can be declared as pointer to const. However it seems that 'toggle_xy' is a callback function, if 'func_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:945:2: note: You might need to cast the function pointer here g3data-1.5.3/main.c:405:44: note: Parameter 'func_data' can be declared as pointer to const g3data-1.5.3/main.c:431:46: style: Parameter 'func_data' can be declared as pointer to const. However it seems that 'SetOrdering' is a callback function, if 'func_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:1071:2: note: You might need to cast the function pointer here g3data-1.5.3/main.c:431:46: note: Parameter 'func_data' can be declared as pointer to const g3data-1.5.3/main.c:439:44: style: Parameter 'func_data' can be declared as pointer to const. However it seems that 'SetAction' is a callback function, if 'func_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:1111:2: note: You might need to cast the function pointer here g3data-1.5.3/main.c:439:44: note: Parameter 'func_data' can be declared as pointer to const g3data-1.5.3/main.c:459:47: style: Parameter 'func_data' can be declared as pointer to const. However it seems that 'read_xy_entry' is a callback function, if 'func_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:901:2: note: You might need to cast the function pointer here g3data-1.5.3/main.c:459:47: note: Parameter 'func_data' can be declared as pointer to const g3data-1.5.3/main.c:461:10: style: Variable 'xy_text' can be declared as pointer to const [constVariablePointer] g3data-1.5.3/main.c:482:49: style: Parameter 'func_data' can be declared as pointer to const. However it seems that 'read_file_entry' is a callback function, if 'func_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:1131:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:482:49: note: Parameter 'func_data' can be declared as pointer to const g3data-1.5.3/main.c:508:42: style: Parameter 'func_data' can be declared as pointer to const. However it seems that 'islogxy' is a callback function, if 'func_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:964:2: note: You might need to cast the function pointer here g3data-1.5.3/main.c:508:42: note: Parameter 'func_data' can be declared as pointer to const g3data-1.5.3/main.c:533:46: style: Parameter 'data' can be declared as pointer to const. However it seems that 'remove_last' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:951:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:533:46: note: Parameter 'data' can be declared as pointer to const g3data-1.5.3/main.c:616:54: style: Parameter 'event' can be declared as pointer to const. However it seems that 'key_press_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:1655:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:616:54: note: Parameter 'event' can be declared as pointer to const g3data-1.5.3/main.c:664:56: style: Parameter 'event' can be declared as pointer to const. However it seems that 'key_release_event' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] g3data-1.5.3/main.c:1657:5: note: You might need to cast the function pointer here g3data-1.5.3/main.c:664:56: note: Parameter 'event' can be declared as pointer to const g3data-1.5.3/main.c:1227:26: style: Variable 'c' can be declared as pointer to const [constVariablePointer] diff: DONE