Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at tap-comparestat.c:328

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

call_foreach_merge_settings

(/home/sate/Testcases/c/cve/wireshark-1.2.0/tap-comparestat.c)expand/collapse
Show more  
 310  call_foreach_merge_settings(gpointer value, gpointer arg)
 311  {
 312          comparestat_t *cs=(comparestat_t*)arg;
 313          frame_info *fInfo=(frame_info*)value, *fInfoTemp=NULL;
 314          guint32 tot_packet_amount=cs->first_file_amount+cs->second_file_amount, swap;
 315   
 316          if((fInfo->num==tot_packet_amount)&&(cs->stop_packet_nr_first!=G_MAXINT32)){
 317                  /* calculate missing stop number */
 318                  swap=cs->stop_packet_nr_first;
 319                  cs->stop_packet_nr_first=tot_packet_amount-cs->second_file_amount;;
 320                  cs->stop_packet_nr_second=swap;
 321          }
 322   
 323          if((fInfo->num==tot_packet_amount)&&(cs->stop_packet_nr_first==G_MAXINT32)&&(cs->start_packet_nr_first!=G_MAXINT32)){
 324[+]                 fInfoTemp=se_tree_lookup32(cs->packet_tree, cs->start_packet_nr_first);
 325                  if(fInfoTemp==NULL){
 326                          printf("ERROR: start number not set correctly\n");
 327                  }
 328                  if(fmod(fInfoTemp->zebra_time.nsecs, 2)){
Show more  




Change Warning 4332.29888 : Null Pointer Dereference

Because they are very similar, this warning shares annotations with warning 4332.30058.

Priority:
State:
Finding:
Owner:
Note: