(/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); |
Ignored Return Value
The return value of __isoc99_sscanf() is never checked in the highlighted execution scenario. - If the return value can indicate an error, the error will be ignored if the highlighted code executes.
- CodeSonar is configured to enforce Ignored Return Value checks for __isoc99_sscanf(). (To change the set of enforced Ignored Return Value checks, use configuration file parameters RETURN_CHECKER_CHECKED_FUNCS and RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 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) |
| 210 | | | { |
| 211 | | | assoc = (sctp_assoc_info_t*)(list->data); |
| 212 | | | if (assoc->port1==port1 && assoc->port2==port2 |
| 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) |
| 215 | | | { |
| 216 | | | selected_stream=assoc; |
| 217 | | | stream_found=TRUE; |
Event 3:
!0 evaluates to true.
hide
|
|
| 218 | | | break; |
| 219 | | | } |
| 220 | | | list=g_list_next(list);
x /usr/include/glib-2.0/glib/glist.h |
| |
113 | #define g_list_next(list) ((list) ? (((GList *)(list))->next) : NULL) |
| |
|
| 221 | | | } |
| 222 | | | |
| 223 | | | if (!stream_found) |
Event 4:
Skipping " if". stream_found evaluates to true.
hide
|
|
| 224 | | | selected_stream = NULL; |
| 225 | | | |
| 226 | | | gtk_widget_set_sensitive(bt_unselect,TRUE); |
Event 5:
!0 evaluates to true.
hide
|
|
| 227 | | | gtk_widget_set_sensitive(bt_analyse,TRUE); |
Event 6:
!0 evaluates to true.
hide
|
|
| 228 | | | gtk_widget_set_sensitive(bt_filter,TRUE); |
Event 7:
!0 evaluates to true.
hide
|
|
| 229 | | | } |
| |