Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at rtp_stream_dlg.c:434

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

rtpstream_on_filter

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rtp_stream_dlg.c)expand/collapse
Show more  
 401  rtpstream_on_filter                    (GtkButton       *button _U_,
 402                                          gpointer         user_data _U_)
 403  {
 404          gchar *filter_string = NULL;
 405          gchar *filter_string_fwd = NULL;
 406          gchar *filter_string_rev = NULL;
 407          gchar ip_version[3];
 408   
 409          if (selected_stream_fwd==NULL && selected_stream_rev==NULL)
 410                  return;
 411   
 412          if (selected_stream_fwd)
 413          {
 414                  if (selected_stream_fwd->src_addr.type==AT_IPv6){
 415                          g_strlcpy(ip_version,"v6",sizeof(ip_version));
 416                  }                
 417                  else{
 418                          ip_version[0] = '\0';
 419                  }
 420                  filter_string_fwd = g_strdup_printf(
 421                          "(ip%s.src==%s && udp.srcport==%u && ip%s.dst==%s && udp.dstport==%u && rtp.ssrc==0x%X)",
 422                          ip_version,
 423                          address_to_str(&(selected_stream_fwd->src_addr)),
 424                          selected_stream_fwd->src_port,
 425                          ip_version,
 426                          address_to_str(&(selected_stream_fwd->dest_addr)),
 427                          selected_stream_fwd->dest_port,
 428                          selected_stream_fwd->ssrc);
 429          filter_string = filter_string_fwd;
 430          }
 431   
 432          if (selected_stream_rev)
 433          {
 434                  if (selected_stream_fwd->src_addr.type==AT_IPv6){
Show more  




Change Warning 4422.30821 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: