Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at tcp_graph.c:3619

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);
expand/collapse

graph_type_dependent_initialize

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c)expand/collapse
Show more  
 1638  static void graph_type_dependent_initialize (struct graph *g)
 1639  {
 1640          switch (g->type) {
 1641          case GRAPH_TSEQ_STEVENS:
 1642          case GRAPH_TSEQ_TCPTRACE:
 1643                  tseq_initialize (g);
 1644                  break;
 1645          case GRAPH_THROUGHPUT:
 1646[+]                 tput_initialize (g);
expand/collapse

tput_initialize

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c)expand/collapse
Show more  
 3608  static void tput_initialize (struct graph *g)
 3609  {
 3610          struct segment *tmp, *oldest, *last;
 3611          int i, sum=0;
 3612          double dtime, tput, tputmax=0;
 3613          double t, t0, tmax = 0, y0, ymax;
 3614   
 3615          debug(DBS_FENTRY) puts ("tput_initialize()");
 3616   
 3617          tput_read_config(g);
 3618   
 3619          for (last=g->segments; last->next; last=last->next);
Show more  
Show more  
Show more  
Show more  




Change Warning 4599.31760 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: