*** ttgload.c~ 2005-08-28 20:58:37.000000000 -0700 --- ttgload.c 2005-08-28 20:58:37.000000000 -0700 *************** *** 63,76 **** #define UNSCALED_COMPONENT_OFFSET 0x1000 - /* 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 - - /*************************************************************************/ /* */ --- 63,68 ---- *************** *** 984,990 **** #endif ! if ( recurse_count >= TT_MAX_COMPOSITE_RECURSE ) { error = TT_Err_Invalid_Composite; goto Exit; --- 976,982 ---- #endif ! if ( recurse_count > face->max_profile.maxComponentDepth ) { error = TT_Err_Invalid_Composite; goto Exit;