From d23a1f6067f577b3628008a8bfe54e033af876a1 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 19 Mar 2012 12:01:30 +0100 Subject: [PATCH] Fix crash. --- lib/tabytecode.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tabytecode.c b/lib/tabytecode.c index 24700b1..4ebca3c 100644 --- a/lib/tabytecode.c +++ b/lib/tabytecode.c @@ -1566,6 +1566,10 @@ TA_sfnt_build_glyph_instructions(SFNT* sfnt, hints = &font->loader->hints; + /* do nothing if the setup delivered the dummy module only */ + if (!hints->num_points) + return FT_Err_Ok; + /* we allocate a buffer which is certainly large enough */ /* to hold all of the created bytecode instructions; */ /* later on it gets reallocated to its real size */ -- 2.11.4.GIT