Text   |  XML   |  ReML   |   Visible Warnings:

Dangerous Function Cast  at compare_stat.c:790

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

gtk_comparestat_init

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/compare_stat.c)expand/collapse
Show more  
 780          /* create a newtree model with four columns */
 781          cs->simple_list=gtk_tree_store_new(COLUMNS, G_TYPE_INT, G_TYPE_STRING, G_TYPE_INT, G_TYPE_DOUBLE);
 782   
 783          /* add the tree model to the tree view and unreference it so that the model will
 784          * be destroyed along with the tree view. */
 785          gtk_tree_view_set_model(GTK_TREE_VIEW (cs->treeview), GTK_TREE_MODEL (cs->simple_list));
 786          g_object_unref(cs->simple_list);
 787   
 788          /* call this method when row is chosen*/
 789          gtk_tree_selection_set_mode(gtk_tree_view_get_selection(GTK_TREE_VIEW(cs->treeview)),GTK_SELECTION_SINGLE);
 790          g_signal_connect(gtk_tree_view_get_selection(GTK_TREE_VIEW(cs->treeview)), "changed", G_CALLBACK(new_tree_view_selection_changed), cs);
 791           
 792          /* list with scrollbar's */
 793          cs->scrolled_win=gtk_scrolled_window_new(NULL, NULL);
 794          gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW(cs->scrolled_win), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
 795          gtk_container_add(GTK_CONTAINER(cs->scrolled_win), cs->treeview);
 796          gtk_box_pack_start(GTK_BOX(vbox), cs->scrolled_win, TRUE, TRUE, 0);
 797   
 798          /* create a Hash to count the packets with the same ip.id */
 799          cs->packet_tree=se_tree_create(EMEM_TREE_TYPE_RED_BLACK, "Packet_info_tree");
 800   
Show more  




Change Warning 594.28690 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: