(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/main_statusbar.c) |
| |
| 343 | | | static void |
| 344 | | | profile_bar_new(void) |
| 345 | | | { |
| 346 | | | GtkTooltips *tooltips; |
| 347 | | | |
| 348 | | | tooltips = gtk_tooltips_new(); |
| 349 | | | |
| 350 | | | profile_bar_event = gtk_event_box_new(); |
| 351 | | | profile_bar = gtk_statusbar_new(); |
| 352 | | | gtk_container_add(GTK_CONTAINER(profile_bar_event), profile_bar);
x /usr/include/gtk-2.0/gtk/gtkcontainer.h |
| |
42 | #define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
x /usr/include/gtk-2.0/gtk/gtkcontainer.h |
| |
41 | #define GTK_TYPE_CONTAINER (gtk_container_get_type ()) |
| |
|
| 353 | | | g_signal_connect(profile_bar_event, "button_press_event", G_CALLBACK(), NULL);
x /usr/include/glib-2.0/gobject/gsignal.h |
| |
421 | #define g_signal_connect(instance, detailed_signal, c_handler, data) \ |
422 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) |
| |
x /usr/include/glib-2.0/gobject/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
Dangerous Function Cast
Casting to this new type could lead to unsafe program behavior. - The function return types have different sizes.
- The previous return type was int which has size 4.
- The new return type is void which has size 0.
|
|
| 354 | | | profile_ctx = gtk_statusbar_get_context_id(GTK_STATUSBAR(profile_bar), "profile");
x /usr/include/gtk-2.0/gtk/gtkstatusbar.h |
| |
40 | #define GTK_STATUSBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_STATUSBAR, GtkStatusbar)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
x /usr/include/gtk-2.0/gtk/gtkstatusbar.h |
| |
39 | #define GTK_TYPE_STATUSBAR (gtk_statusbar_get_type ()) |
| |
|
| 355 | | | gtk_tooltips_set_tip (tooltips, profile_bar_event, |
| 356 | | | "Click to change configuration profile", NULL); |
| 357 | | | profile_bar_update(); |
| 358 | | | |
| 359 | | | gtk_widget_show(profile_bar); |
| 360 | | | gtk_widget_show(profile_bar_event); |
| 361 | | | } |
| 362 | | | |
| 363 | | | |
| |