(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/conversations_table.c) |
| |
| 990 | | | static void |
| 991 | | | (conversations_table *ct) |
| 992 | | | { |
| 993 | | | GtkItemFactory *item_factory; |
| 994 | | | |
| 995 | | | item_factory = gtk_item_factory_new(, "<main>", NULL); |
| 996 | | | |
| 997 | | | gtk_item_factory_create_items_ac(item_factory, sizeof()/sizeof([0]), , ct, 2); |
| 998 | | | |
| 999 | | | ct-> = gtk_item_factory_get_widget(item_factory, "<main>"); |
| 1000 | | | g_signal_connect(ct->table, "button_press_event", G_CALLBACK(), ct);
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.
|
|
| 1001 | | | } |
| 1002 | | | |
| 1003 | | | |
| 1004 | | | static void |
| 1005 | | | draw_ct_table_address(conversations_table *ct, int conversation_idx) |
| 1006 | | | { |
| 1007 | | | const char *entry; |
| 1008 | | | char *port; |
| 1009 | | | guint32 pt; |
| 1010 | | | int rownum; |
| |