[cairo] patch for 'invalid write' in cairo-pdf-surface.c

Kristian Høgsberg krh at bitplanet.net
Fri Jun 3 10:09:47 PDT 2005


Tomasz Cholewo wrote:
> _cairo_array_append in cairo_pdf_ft_font_write can realloc
> font->output making previously calculated font->checksum_location
> pointer invalid.  I attach a proposed patch (in essence: store
> the array index, not a raw pointer) and a valgrind trace that
> demonstrates the bug.

Thanks, nice catch, applied.

cheers,
Kristian




More information about the cairo mailing list