Versions Compared

Key

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

...

Code Block
bgColor#ccccff
langc
#include <stdckdint.h>

/* ... */

pen->num_vertices = _cairo_pen_vertices_needed(
  gstate->tolerance, radius, &gstate->ctm
);

size_t product;
if (ckd_mul(&product, pen->num_vertices, sizeof(cairo_pen_vertex_t))) {
  /* Handle error */
}

pen->vertices = malloc(product);

...