Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at proto.c:3302

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

process_packet

(/home/sate/Testcases/c/cve/wireshark-1.2.0/tshark.c)expand/collapse
Show more  
 2396  process_packet(capture_file *cf, gint64 offset, const struct wtap_pkthdr *whdr,
 2397                 union wtap_pseudo_header *pseudo_header, const guchar *pd)
 2398  {
 2399    frame_data fdata;
 2400    gboolean create_proto_tree;
 2401    epan_dissect_t *edt;
 2402    gboolean passed;
 2403   
 2404    /* Count this packet. */
 2405    cf->count++;
 2406   
 2407    /* If we're going to print packet information, or we're going to
 2408       run a read filter, or we're going to process taps, set up to 
 2409       do a dissection and do so. */
 2410    if (do_dissection) {
 2411      fill_in_fdata(&fdata, cf, whdr, offset);
 2412   
 2413      if (print_packet_info) {
 2414        /* Grab any resolved addresses */
 2415   
 2416        if (g_resolv_flags) {
 2417          host_name_lookup_process(NULL);
 2418        }
 2419      }
 2420   
 2421      passed = TRUE;
 2422      if (cf->rfcode || verbose || num_tap_filters!=0 || have_custom_cols(&cf->cinfo))
 2423        create_proto_tree = TRUE;
 2424      else 
 2425        create_proto_tree = FALSE;
 2426      /* The protocol tree will be "visible", i.e., printed, only if we're
 2427         printing packet details, which is true if we're printing stuff
 2428         ("print_packet_info" is true) and we're in verbose mode ("verbose"
 2429         is true). */
 2430[+]     edt = epan_dissect_new(create_proto_tree, print_packet_info && verbose);
 2431   
 2432      /* If we're running a read filter, prime the epan_dissect_t with that 
 2433         filter. */
 2434      if (cf->rfcode)
 2435        epan_dissect_prime_dfilter(edt, cf->rfcode);
 2436   
 2437      col_custom_prime_edt(edt, &cf->cinfo);
 2438   
 2439[+]     tap_queue_init(edt);
expand/collapse

tap_queue_init

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/tap.c)expand/collapse
Show more  
 200  tap_queue_init(epan_dissect_t *edt)
 201  {
 202          tap_listener_t *tl;
 203   
 204          /* nothing to do, just return */
 205          if(!tap_listener_queue){
 206                  return;
 207          }
 208   
 209          tapping_is_active=TRUE;
 210   
 211          tap_packet_index=0;
 212   
 213          /* loop over all tap listeners and build the list of all 
 214             interesting hf_fields */
 215          for(tl=(tap_listener_t *)tap_listener_queue;tl;tl=tl->next){
 216                  if(tl->code){
 217[+]                         epan_dissect_prime_dfilter(edt, tl->code);
expand/collapse

epan_dissect_prime_dfilter

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/epan.c)expand/collapse
Show more  
 195  epan_dissect_prime_dfilter(epan_dissect_t *edt, const dfilter_t* dfcode)
 196  {
 197[+]         dfilter_prime_proto_tree(dfcode, edt->tree);
expand/collapse

dfilter_prime_proto_tree

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dfilter/dfilter.c)expand/collapse
Show more  
 382  dfilter_prime_proto_tree(const dfilter_t *df, proto_tree *tree)
 383  {
 384      int i;
 385   
 386      for (i = 0; i < df->num_interesting_fields; i++) {
 387[+]         proto_tree_prime_hfid(tree, df->interesting_fields[i]);
expand/collapse

proto_tree_prime_hfid

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.c)expand/collapse
Show more  
 3298  proto_tree_prime_hfid(proto_tree *tree, gint hfid)
 3299  {
 3300          header_field_info *hfinfo;
 3301   
 3302          g_hash_table_insert(PTREE_DATA(tree)->interesting_hfids,
 3303                  GINT_TO_POINTER(hfid), g_ptr_array_new());
Show more  
Show more  
Show more  
Show more  
Show more  




Change Warning 4890.31551 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: