(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/rtp_stream_dlg.c) |
| |
| 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) |
Event 1:
Skipping " if". - selected_stream_fwd == (void *)0 evaluates to true.
- selected_stream_rev == (void *)0 evaluates to false.
hide
Event 2:
Considering the case where selected_stream_fwd is equal to 0.
hide
|
|
| 410 | | | return; |
| 411 | | | |
| 412 | | | if (selected_stream_fwd) |
Event 3:
Skipping " if". selected_stream_fwd evaluates to false.
hide
|
|
| 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) |
Event 4:
Taking true branch. selected_stream_rev evaluates to true.
hide
|
|
| 433 | | | { |
| 434 | | | if (selected_stream_fwd->src_addr.type==AT_IPv6){ |
Null Pointer Dereference
selected_stream_fwd is dereferenced here, but it is NULL. - The pointer is selected_stream_fwd, which must be equal to 0.
The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |