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

add_packet_to_packet_list

(/home/sate/Testcases/c/cve/wireshark-1.2.0/file.c)expand/collapse
Show more  
 917  add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
 918          dfilter_t *dfcode,
 919          union wtap_pseudo_header *pseudo_header, const guchar *buf,
 920          gboolean refilter)
 921  {
 922    gint          row;
 923    gboolean      create_proto_tree = FALSE;
 924    epan_dissect_t *edt;
 925   
 926    /* just add some value here until we know if it is being displayed or not */
 927    fdata->cum_bytes  = cum_bytes + fdata->pkt_len;
 928   
 929    /* If we don't have the time stamp of the first packet in the
 930       capture, it's because this is the first packet.  Save the time
 931       stamp of this packet as the time stamp of the first packet. */
 932[+]   if (nstime_is_unset(&first_ts)) {
 933      first_ts  = fdata->abs_ts;
 934    }
 935    /* if this frames is marked as a reference time frame, reset 
 936       firstsec and firstusec to this frame */
 937    if(fdata->flags.ref_time){
 938      first_ts = fdata->abs_ts;
 939    }
 940   
 941    /* If we don't have the time stamp of the previous displayed packet,
 942       it's because this is the first displayed packet.  Save the time
 943       stamp of this packet as the time stamp of the previous displayed 
 944       packet. */
 945[+]   if (nstime_is_unset(&prev_dis_ts)) {
 946      prev_dis_ts = fdata->abs_ts;
 947    }
 948   
 949    /* Get the time elapsed between the first packet and this packet. */
 950    nstime_delta(&fdata->rel_ts, &fdata->abs_ts, &first_ts);
 951   
 952    /* If it's greater than the current elapsed time, set the elapsed time
 953       to it (we check for "greater than" so as not to be confused by 
 954       time moving backwards). */
 955    if ((gint32)cf->elapsed_time.secs < fdata->rel_ts.secs
 956    || ((gint32)cf->elapsed_time.secs == fdata->rel_ts.secs && (gint32)cf->elapsed_time.nsecs < fdata->rel_ts.nsecs)) {
 957      cf->elapsed_time = fdata->rel_ts;
 958    }
 959   
 960    /* Get the time elapsed between the previous displayed packet and
 961       this packet. */
 962    nstime_delta(&fdata->del_dis_ts, &fdata->abs_ts, &prev_dis_ts);
 963   
 964    /* If either
 965   
 966          we have a display filter and are re-applying it;
 967   
 968          we have a list of color filters;
 969   
 970          we have tap listeners;
 971   
 972          we have custom columns;
 973   
 974       allocate a protocol tree root node, so that we'll construct 
 975       a protocol tree against which a filter expression can be 
 976       evaluated. */
 977    if ((dfcode != NULL && refilter) || color_filters_used()
 978[+]       || num_tap_filters != 0 || have_custom_cols(&cf->cinfo))
 979            create_proto_tree = TRUE;
 980   
 981    /* Dissect the frame. */
 982[+]   edt = epan_dissect_new(create_proto_tree, FALSE);
 983   
 984    if (dfcode != NULL && refilter) {
 985        epan_dissect_prime_dfilter(edt, dfcode);
 986    }
 987    /* prepare color filters */
 988[+]   if (color_filters_used()) {
 989        color_filters_prime_edt(edt);
 990    }
 991   
 992    col_custom_prime_edt(edt, &cf->cinfo);
 993   
 994[+]   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 12108.31181 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: