(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/io_stat.c) |
| |
| 1916 | | | static void |
| 1917 | | | (io_stat_graph_t *gio, GtkWidget *) |
| 1918 | | | { |
| 1919 | | | GtkWidget *; |
| 1920 | | | int i; |
| 1921 | | | |
| 1922 | | | for(i=0;i<MAX_CALC_TYPES;i++){ |
| 1923 | | | gio->calc_types[i].gio=gio; |
| 1924 | | | gio->calc_types[i].calc_type=i; |
| 1925 | | | =(calc_type_names[i]); |
| 1926 | | | g_signal_connect(, "activate", G_CALLBACK(calc_type_select), &gio->calc_types[i]);
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 calc_type_select to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 1927 | | | gtk_widget_show(); |
| 1928 | | | ((), );
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)) |
| |
|
| 1929 | | | } |
| 1930 | | | return; |
| 1931 | | | } |
| 1932 | | | |
| 1933 | | | |
| 1934 | | | static void |
| 1935 | | | (io_stat_graph_t *gio, GtkWidget *box, const char *name, void (*func)(io_stat_graph_t *io, GtkWidget *)) |
| 1936 | | | { |
| |