(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/hostlist_table.c) |
| |
| 422 | | | static void |
| 423 | | | (hostlist_table *hl) |
| 424 | | | { |
| 425 | | | GtkItemFactory *item_factory; |
| 426 | | | |
| 427 | | | item_factory = gtk_item_factory_new(, "<main>", NULL); |
| 428 | | | |
| 429 | | | gtk_item_factory_create_items_ac(item_factory, sizeof()/sizeof([0]), , hl, 2); |
| 430 | | | |
| 431 | | | hl-> = gtk_item_factory_get_widget(item_factory, "<main>"); |
| 432 | | | g_signal_connect(hl->table, "button_press_event", G_CALLBACK(), hl);
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.
|
|
| 433 | | | } |
| 434 | | | |
| 435 | | | |
| 436 | | | |
| 437 | | | static void |
| 438 | | | draw_hostlist_table_address(hostlist_table *hl, int hostlist_idx) |
| 439 | | | { |
| 440 | | | const char *entry; |
| 441 | | | char *port; |
| 442 | | | guint32 pt; |
| |