Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
pen->num_vertices = 
  _cairo_pen_vertices_needed(
    gstate->tolerance, 
    radius, 
    &gstate->ctm
  );

if (pen->num_vertices > SIZE_MAX/sizeof(cairo_pen_vertex_t)) {
   /* handle error condition */
}
pen->vertices = 
  malloc(pen->num_vertices * sizeof(cairo_pen_vertex_t));

...