Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at tcp_graph.c:3578

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

callback_graph_type

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c)expand/collapse
Show more  
 1526  static void callback_graph_type (GtkWidget *toggle, gpointer data)
 1527  {
 1528          int old_type, new_type;
 1529          struct graph *g = (struct graph * )data;
 1530   
 1531          new_type = (long)g_object_get_data(G_OBJECT(toggle),"new-graph-type");
 1532   
 1533          if (!GTK_TOGGLE_BUTTON (toggle)->active)
 1534                  return;
 1535   
 1536          old_type = g->type;
 1537          g->type = new_type;
 1538   
 1539          graph_element_lists_free (g);
 1540          graph_element_lists_initialize (g);
 1541   
 1542          if (old_type == GRAPH_THROUGHPUT || new_type == GRAPH_THROUGHPUT) {
 1543                  /* throughput graph uses differently constructed segment list so we 
 1544                   * need to recreate it */
 1545[+]                 graph_segment_list_free (g);
 1546                  graph_segment_list_get (g);
 1547          }
 1548   
 1549          if (g->flags & GRAPH_INIT_ON_TYPE_CHANGE) {
 1550                  g->geom.width = g->wp.width;
 1551                  g->geom.height = g->wp.height;
 1552                  g->geom.x = g->wp.x;
 1553                  g->geom.y = g->wp.y;
 1554          }
 1555          g->x_axis->min = g->y_axis->min = 0;
 1556          gtk_toggle_button_set_active (g->gui.time_orig_conn, TRUE);
 1557          gtk_toggle_button_set_active (g->gui.seq_orig_isn, TRUE);
 1558[+]         graph_init_sequence (g);
expand/collapse

graph_init_sequence

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c)expand/collapse
Show more  
 1613  static void graph_init_sequence (struct graph *g)
 1614  {
 1615          debug(DBS_FENTRY) puts ("graph_init_sequence()");
 1616   
 1617          graph_type_dependent_initialize (g);
 1618          g->zoom.initial.x = g->zoom.x;
 1619          g->zoom.initial.y = g->zoom.y;
 1620[+]         graph_element_lists_make (g);
expand/collapse

graph_element_lists_make

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c)expand/collapse
Show more  
 1911  static void graph_element_lists_make (struct graph *g)
 1912  {
 1913          debug(DBS_FENTRY) puts ("graph_element_lists_make()");
 1914   
 1915          switch (g->type) {
 1916          case GRAPH_TSEQ_STEVENS:
 1917                  tseq_stevens_make_elmtlist (g);
 1918                  break;
 1919          case GRAPH_TSEQ_TCPTRACE:
 1920                  tseq_tcptrace_make_elmtlist (g);
 1921                  break;
 1922          case GRAPH_THROUGHPUT:
 1923[+]                 tput_make_elmtlist (g);
expand/collapse

tput_make_elmtlist

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c)expand/collapse
Show more  
 3565  static void tput_make_elmtlist (struct graph *g)
 3566  {
 3567          struct segment *tmp, *oldest;
 3568          struct element *elements, *e;
 3569          int i, sum=0;
 3570          double dtime, tput;
 3571   
 3572          if (g->elists->elements == NULL) {
 3573                  int n = 1 + get_num_dsegs (g);
 3574                  e = elements = (struct element * )g_malloc (n*sizeof (struct element));
 3575          } else 
 3576                  e = elements = g->elists->elements;
 3577   
 3578          for (oldest=g->segments,tmp=g->segments->next,i=0; tmp; tmp=tmp->next,i++) {
Show more  
Show more  
Show more  
Show more  




Change Warning 4600.31761 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: