* src/pcf/pcfdrivr.c (PCF_Face_Init): Protect call to

`FT_Stream_OpenLZW' with `FT_CONFIG_OPTION_USE_LZ'.  From Savannah
bug #22909.
This commit is contained in:
Werner Lemberg 2008-04-13 22:06:12 +00:00
parent 8271e5e443
commit 4ebc890e06
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-04-14 Werner Lemberg <wl@gnu.org>
* src/pcf/pcfdrivr.c (PCF_Face_Init): Protect call to
`FT_Stream_OpenLZW' with `FT_CONFIG_OPTION_USE_LZ'. From Savannah
bug #22909.
2008-04-13 Werner Lemberg <wl@gnu.org> 2008-04-13 Werner Lemberg <wl@gnu.org>
* src/psaux/psconv.c (PS_Conv_ToFixed): Increase precision if * src/psaux/psconv.c (PS_Conv_ToFixed): Increase precision if

View File

@ -2,7 +2,7 @@
FreeType font driver for pcf files FreeType font driver for pcf files
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007 by Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008 by
Francesco Zappa Nardelli Francesco Zappa Nardelli
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
@ -273,6 +273,7 @@ THE SOFTWARE.
error = error2; error = error2;
if ( error ) if ( error )
#ifdef FT_CONFIG_OPTION_USE_LZW
{ {
FT_Error error3; FT_Error error3;
@ -295,6 +296,9 @@ THE SOFTWARE.
if ( error ) if ( error )
goto Fail; goto Fail;
} }
#else
goto Fail;
#endif
else else
{ {
face->gzip_source = stream; face->gzip_source = stream;