/[freetype]/freetype2/src/truetype/ttgload.c
ViewVC logotype

Diff of /freetype2/src/truetype/ttgload.c

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

revision 1.148 by wl, Mon Aug 22 07:11:31 2005 UTC revision 1.149 by wl, Mon Aug 29 11:59:18 2005 UTC
# Line 63  Line 63 
63  #define UNSCALED_COMPONENT_OFFSET  0x1000  #define UNSCALED_COMPONENT_OFFSET  0x1000
64    
65    
 /* Maximum recursion depth we allow for composite glyphs.  
  * The TrueType spec doesn't say anything about recursion,  
  * so it isn't clear that recursion is allowed at all. But  
  * we'll be generous.  
  */  
 #define TT_MAX_COMPOSITE_RECURSE 5  
   
   
   
66    /*************************************************************************/    /*************************************************************************/
67    /*                                                                       */    /*                                                                       */
68    /* <Function>                                                            */    /* <Function>                                                            */
# Line 1221  Line 1212 
1212  #endif  #endif
1213    
1214    
1215      if ( recurse_count >= TT_MAX_COMPOSITE_RECURSE )      if ( recurse_count >= face->max_profile.maxComponentDepth )
1216      {      {
1217        error = TT_Err_Invalid_Composite;        error = TT_Err_Invalid_Composite;
1218        goto Exit;        goto Exit;

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149

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