(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/sctp_stat_dlg.c) |
| |
| 179 | | | sctp_stat_on_select_row(GtkCList *clist, gint row, gint column _U_, |
| 180 | | | GdkEventButton *event _U_, gpointer user_data _U_) |
| 181 | | | { |
| 182 | | | gchar *text[1]; |
| 183 | | | guint16 port1, port2; |
| 184 | | | guint32 checksum, data_chunks, data_bytes, packets, vtag1, vtag2; |
| 185 | | | GList *list; |
| 186 | | | sctp_assoc_info_t* assoc; |
| 187 | | | gboolean stream_found=FALSE; |
| 188 | | | |
| 189 | | | gtk_clist_get_row_data(GTK_CLIST(clist), row);
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
87 | #define GTK_CLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) |
| |
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/gtkclist.h |
| |
86 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) |
| |
|
| 190 | | | gtk_clist_get_text(GTK_CLIST(clist), row, 0, text);
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
87 | #define GTK_CLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) |
| |
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/gtkclist.h |
| |
86 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) |
| |
|
| 191 | | | port1=atoi(text[0]); |
| 192 | | | gtk_clist_get_text(GTK_CLIST(clist), row, 1, text);
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
87 | #define GTK_CLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) |
| |
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/gtkclist.h |
| |
86 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) |
| |
|
| 193 | | | port2=atoi(text[0]); |
| 194 | | | gtk_clist_get_text(GTK_CLIST(clist), row, 7, text);
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
87 | #define GTK_CLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) |
| |
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/gtkclist.h |
| |
86 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) |
| |
|
| 195 | | | sscanf(text[0],"0x%x",&vtag1); |
| 196 | | | gtk_clist_get_text(GTK_CLIST(clist), row, 8, text);
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
87 | #define GTK_CLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) |
| |
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/gtkclist.h |
| |
86 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) |
| |
|
| 197 | | | sscanf(text[0],"0x%x",&vtag2); |
Event 16:
__isoc99_sscanf() does not initialize vtag2. - This may be because of a failure case or other special case for __isoc99_sscanf(). Consult the __isoc99_sscanf() documentation for more information.
hide
|
|
| 198 | | | gtk_clist_get_text(GTK_CLIST(clist), row, 2, text);
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
87 | #define GTK_CLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) |
| |
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/gtkclist.h |
| |
86 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) |
| |
|
| 199 | | | packets=atoi(text[0]); |
| 200 | | | gtk_clist_get_text(GTK_CLIST(clist), row, 4, text);
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
87 | #define GTK_CLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) |
| |
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/gtkclist.h |
| |
86 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) |
| |
|
| 201 | | | checksum=atoi(text[0]); |
| 202 | | | gtk_clist_get_text(GTK_CLIST(clist), row, 5, text);
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
87 | #define GTK_CLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) |
| |
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/gtkclist.h |
| |
86 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) |
| |
|
| 203 | | | data_chunks=atoi(text[0]); |
| 204 | | | gtk_clist_get_text(GTK_CLIST(clist), row, 6, text);
x /usr/include/gtk-2.0/gtk/gtkclist.h |
| |
87 | #define GTK_CLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CLIST, GtkCList)) |
| |
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/gtkclist.h |
| |
86 | #define GTK_TYPE_CLIST (gtk_clist_get_type ()) |
| |
|
| 205 | | | data_bytes=atoi(text[0]); |
| 206 | | | |
| 207 | | | list = g_list_first(sctp_assocs->assoc_info_list); |
| 208 | | | |
| 209 | | | while (list) |
Event 30:
Entering loop body. list evaluates to true.
hide
|
|
| 210 | | | { |
| 211 | | | assoc = (sctp_assoc_info_t*)(list->data); |
| 212 | | | if (assoc->port1==port1 && assoc->port2==port2 |
Event 31:
- assoc->port1 == port1 evaluates to true.
- assoc->port2 == port2 evaluates to true.
- assoc->n_packets == packets evaluates to true.
- assoc->n_data_chunks == data_chunks evaluates to true.
- assoc->n_data_bytes == data_bytes evaluates to true.
- assoc->verification_tag1 == vtag1 evaluates to true.
hide
|
|
| 213 | | | && assoc->n_packets==packets && assoc->n_data_chunks==data_chunks && assoc->n_data_bytes==data_bytes |
| 214 | | | && assoc->verification_tag1==vtag1 && assoc->verification_tag2==vtag2) |
Uninitialized Variable
vtag2 was not initialized. The issue can occur if the highlighted code executes. See related event 16. Show: All events | Only primary events |
|
| |