Hi, attached is the patch for an NMU to fix this regression. This patch was also proposed by the upstream author. Kind regards Nico
-- Nico Golde - http://www.ngolde.de - [EMAIL PROTECTED] - GPG: 0x73647CFF For security reasons, all text in this mail is double-rot13 encrypted.
diff -u libcairo-1.4.10/src/cairo-ft-font.c libcairo-1.4.10/src/cairo-ft-font.c --- libcairo-1.4.10/src/cairo-ft-font.c +++ libcairo-1.4.10/src/cairo-ft-font.c @@ -735,6 +735,12 @@ width = bitmap->width; height = bitmap->rows; + if (width == 0 || height == 0) { + *surface = (cairo_image_surface_t *) + cairo_image_surface_create_for_data (NULL, format, 0, 0, 0); + return (*surface)->base.status; + } + switch (bitmap->pixel_mode) { case FT_PIXEL_MODE_MONO: stride = (((width + 31) & ~31) >> 3); diff -u libcairo-1.4.10/debian/changelog libcairo-1.4.10/debian/changelog --- libcairo-1.4.10/debian/changelog +++ libcairo-1.4.10/debian/changelog @@ -1,3 +1,13 @@ +libcairo (1.4.10-1.3) unstable; urgency=low + + * Non-maintainer upload. + * Under rare circumstances we may need to extract a surface that + represents a bitmap with width==0 and rows==0. Detect this case at the + start and simply return a zero-sized surface. + Applied upstream patch (Closes: #454768). + + -- Nico Golde <[EMAIL PROTECTED]> Wed, 12 Dec 2007 01:41:30 +0100 + libcairo (1.4.10-1.2) unstable; urgency=high * Fix floating point regressions introduced by the previous NMU.
pgphzQHAvlPQa.pgp
Description: PGP signature