(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c) |
| |
| 1526 | | | static void callback_graph_type (GtkWidget *toggle, gpointer data) |
| 1527 | | | { |
| 1528 | | | int old_type, new_type; |
| 1529 | | | struct graph *g = (struct graph * )data; |
Event 1:
g is set to data.
hide
|
|
| 1530 | | | |
| 1531 | | | new_type = (long)g_object_get_data(G_OBJECT(toggle),"new-graph-type");
x /usr/include/glib-2.0/gobject/gobject.h |
| |
52 | #define G_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_OBJECT, GObject)) |
| |
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/glib-2.0/gobject/gtype.h |
| |
181 | #define G_TYPE_OBJECT G_TYPE_MAKE_FUNDAMENTAL (20) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
222 | #define G_TYPE_MAKE_FUNDAMENTAL(x) ((GType) ((x) << G_TYPE_FUNDAMENTAL_SHIFT)) |
| |
|
| 1532 | | | |
| 1533 | | | if (!GTK_TOGGLE_BUTTON (toggle)->active)
x /usr/include/gtk-2.0/gtk/gtktogglebutton.h |
| |
41 | #define GTK_TOGGLE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TOGGLE_BUTTON, GtkToggleButton)) |
| |
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/gtktogglebutton.h |
| |
40 | #define GTK_TYPE_TOGGLE_BUTTON (gtk_toggle_button_get_type ()) |
| |
|
Event 4:
gtk_toggle_button_get_type is an Undefined Function.
hide
Event 5:
g_type_check_instance_cast is an Undefined Function.
hide
Event 6:
Skipping " if". ((GtkToggleButton *)g_type_check_instance_cast(...))->active evaluates to true.
hide
|
|
| 1534 | | | return; |
| 1535 | | | |
| 1536 | | | old_type = g->type; |
| 1537 | | | g->type = new_type; |
| 1538 | | | |
| 1539 | | | graph_element_lists_free (g); |
| 1540 | | | graph_element_lists_initialize (g); |
| 1541 | | | |
| 1542 | | | if (old_type == GRAPH_THROUGHPUT || new_type == GRAPH_THROUGHPUT) { |
Event 7:
Taking true branch. old_type == 2 evaluates to true.
hide
|
|
| 1543 | | | |
| 1544 | | | |
| 1545 | [+] | | graph_segment_list_free (g); |
Event 8:
g, which evaluates to data, is passed to graph_segment_list_free(). See related event 1.
hide
|
|
 |
| 1546 | | | graph_segment_list_get (g); |
| 1547 | | | } |
| 1548 | | | |
| 1549 | | | if (g->flags & GRAPH_INIT_ON_TYPE_CHANGE) { |
Event 12:
Skipping " if". g->flags & 1 << 1 evaluates to false.
hide
|
|
| 1550 | | | g->geom.width = g->wp.width; |
| 1551 | | | g->geom.height = g->wp.height; |
| 1552 | | | g->geom.x = g->wp.x; |
| 1553 | | | g->geom.y = g->wp.y; |
| 1554 | | | } |
| 1555 | | | g->x_axis->min = g->y_axis->min = 0; |
| 1556 | | | gtk_toggle_button_set_active (g->gui.time_orig_conn, TRUE); |
| 1557 | | | gtk_toggle_button_set_active (g->gui.seq_orig_isn, TRUE); |
| 1558 | [+] | | graph_init_sequence (g); |
Event 17:
g, which evaluates to data, is passed to graph_init_sequence(). See related event 1.
hide
|
|
 |
| |