(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c) |
| |
| 629 | | | static void create_drawing_area (struct graph *g) |
| 630 | | | { |
| 631 | | | GdkColormap *colormap; |
| 632 | | | GdkColor color; |
| 633 | | | #define WINDOW_TITLE_LENGTH 64 |
| 634 | | | char window_title[WINDOW_TITLE_LENGTH]; |
| 635 | | | struct segment current; |
| 636 | | | struct *thdr; |
| 637 | | | |
| 638 | | | debug(DBS_FENTRY) puts ("create_drawing_area()"); |
Event 1:
Skipping " if". debugging & 1 << 0 evaluates to false.
hide
|
|
| 639 | | | #if 0 |
| 640 | | | g->font = gdk_font_load ("-sony-fixed-medium-r-normal--16-150-75-75" |
| 641 | | | "-c-80-iso8859-2"); |
| 642 | | | g->font = gdk_font_load ("-biznet-fotinostypewriter-medium-r-normal-*-*-120" |
| 643 | | | "-*-*-m-*-iso8859-2"); |
| 644 | | | #endif |
| 645 | [+] | | thdr=select_tcpip_session (&cfile, ¤t); |
 |
| 646 | | | g_snprintf (window_title, WINDOW_TITLE_LENGTH, "TCP Graph %d: %s %s:%d -> %s:%d", |
| 647 | | | refnum, |
| 648 | | | cf_get_display_name(&cfile), |
| 649 | | | address_to_str(&(thdr->ip_src)), |
| 650 | | | thdr->th_sport, |
| 651 | | | address_to_str(&(thdr->ip_dst)), |
| 652 | | | thdr->th_dport |
Null Pointer Dereference
thdr is dereferenced here, but it is NULL. The issue can occur if the highlighted code executes. See related event 4. Show: All events | Only primary events |
|
| |