/[freetype]/freetype2/src/lzw/ftlzw.c
ViewVC logotype

Diff of /freetype2/src/lzw/ftlzw.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by freetype, Tue Mar 15 18:18:57 2005 UTC revision 1.4 by wl, Wed Mar 16 01:49:54 2005 UTC
# Line 8  Line 8 
8  /*  be used to parse compressed PCF fonts, as found with many X11 server   */  /*  be used to parse compressed PCF fonts, as found with many X11 server   */
9  /*  distributions.                                                         */  /*  distributions.                                                         */
10  /*                                                                         */  /*                                                                         */
11  /*  Copyright 2004 by                                                      */  /*  Copyright 2004, 2005 by                                                */
12  /*  Albert Chin-A-Young.                                                   */  /*  Albert Chin-A-Young.                                                   */
13  /*                                                                         */  /*                                                                         */
14  /*  Based on code in src/gzip/ftgzip.c, Copyright 2004 by                  */  /*  Based on code in src/gzip/ftgzip.c, Copyright 2004 by                  */
# Line 414  Line 414 
414      FT_Memory   memory = source->memory;      FT_Memory   memory = source->memory;
415      FT_LZWFile  zip;      FT_LZWFile  zip;
416    
417     /* check the header right now, this will prevent us from  
418      * allocating a huge LZWFile object (400 Kb of heap memory !!)      /*
419      * when not necessary.       *  Check the header right now; this prevents allocation a huge
420      *       *  LZWFile object (400 KByte of heap memory) if not necessary.
421      * Did I mention that you should never use .Z compressed font       *
422      * file ?       *  Did I mention that you should never use .Z compressed font
423      */       *  file?
424         */
425      error = ft_lzw_check_header( source );      error = ft_lzw_check_header( source );
426      if ( error )      if ( error )
427        goto Exit;        goto Exit;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26