(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rpc_stat.c) |
| |
| 384 | | | } |
| 385 | | | |
| 386 | | | static void * |
| 387 | | | rpcstat_list_programs(gpointer *key, gpointer *value, gpointer *user_data _U_) |
| 388 | | | { |
| 389 | | | rpc_prog_info_key *k=(rpc_prog_info_key *)key; |
| 390 | | | rpc_prog_info_value *v=(rpc_prog_info_value *)value; |
| 391 | | | GtkWidget *; |
| 392 | | | |
| 393 | | | =(v->progname); |
| 394 | | | g_signal_connect(, "activate", G_CALLBACK(rpcstat_program_select), k);
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 rpcstat_program_select to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 395 | | | |
| 396 | | | gtk_widget_show(); |
| 397 | | | ((), );
x /usr/include/gtk-2.0/gtk/gtkmenushell.h |
| |
41 | #define (obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), , )) |
| |
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)) |
| |
|
| 398 | | | |
| 399 | | | if(!rpc_program){ |
| 400 | | | rpc_program=k->prog; |
| 401 | | | } |
| 402 | | | |
| 403 | | | return NULL; |
| 404 | | | } |
| |