Text   |  XML   |  ReML   |   Visible Warnings:

Dangerous Function Cast  at capture_file_dlg.c:1115

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

set_file_type_list

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/capture_file_dlg.c)expand/collapse
Show more  
 1104    /* Check all file types. */
 1105    index = 0;
 1106    for (ft = 0; ft < WTAP_NUM_FILE_TYPES; ft++) {
 1107      if (can_save_with_wiretap(ft)) {
 1108        /* OK, we can write it out in this type. */
 1109        ft_menu_item = gtk_menu_item_new_with_label(wtap_file_type_string(ft));
 1110        if (ft == filetype) {
 1111          /* Default to the same format as the file, if it's supported. */
 1112          item_to_select = index;
 1113        }
 1114        g_signal_connect(ft_menu_item, "activate", G_CALLBACK(select_file_type_cb),
 1115                       GINT_TO_POINTER(ft));
 1116        gtk_menu_shell_append(GTK_MENU_SHELL(ft_menu), ft_menu_item);
 1117        gtk_widget_show(ft_menu_item);
 1118        index++;
 1119      }
 1120    }
 1121   
 1122    gtk_option_menu_set_menu(GTK_OPTION_MENU(option_menu), ft_menu);
 1123    if (item_to_select >= 0) {
 1124            /* Select the current File format in the menu */
 1125            gtk_option_menu_set_history(GTK_OPTION_MENU(option_menu), item_to_select);
Show more  




Change Warning 128.27918 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: