diff --git a/ChangeLog b/ChangeLog index 804a7b8d6..12413063b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2015-09-11 Werner Lemberg + + [base] Avoid crash while tracing `load_mac_face'. + + Reported in Savannah bug #45919. + + * src/base/ftobjs.c (load_mac_face): Honour FT_OPEN_MEMORY while + tracing. + 2015-09-11 Werner Lemberg [type42] Fix endless loop (#45920). diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index 70928561e..3a41ac00a 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -2037,7 +2037,11 @@ #undef FT_COMPONENT #define FT_COMPONENT trace_raccess - FT_TRACE3(( "Try as dfont: %s ...", args->pathname )); +#ifdef FT_DEBUG_LEVEL_TRACE + FT_TRACE3(( "Try as dfont: " )); + if ( !( args->flags & FT_OPEN_MEMORY ) ) + FT_TRACE3(( "%s ...", args->pathname )); +#endif error = IsMacResource( library, stream, 0, face_index, aface );