Actually, here is an even more correct patch which applies on top
of the current ones in debian/patches.
Regards,
Wolfram.
--- freetype-2.1.7/src/raster/ftrend1.c~ Wed Jun 14 16:03:26 2006
+++ freetype-2.1.7/src/raster/ftrend1.c Wed Jun 14 16:15:41 2006
@@ -176,8 +176,11 @@
bitmap->rows = height;
bitmap->pitch = pitch;
- if ((FT_ULong)pitch > LONG_MAX/height)
+ if (height != 0 && (FT_ULong)pitch > LONG_MAX/height)
+ {
+ error = Raster_Err_Array_Too_Large;
goto Exit;
+ }
if ( FT_ALLOC( bitmap->buffer, (FT_ULong)pitch * height ) )
goto Exit;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]