diff options
Diffstat (limited to 'src/truetype/ttinterp.c')
-rw-r--r-- | src/truetype/ttinterp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index 34cd25879..f55b8eeab 100644 --- a/src/truetype/ttinterp.c +++ b/src/truetype/ttinterp.c @@ -595,6 +595,12 @@ exec->storage = size->storage; exec->twilight = size->twilight; + + /* In case of multi-threading it can happen that the old size object */ + /* no longer exists, thus we must clear all glyph zone references. */ + ft_memset( &exec->zp0, 0, sizeof ( exec->zp0 ) ); + exec->zp1 = exec->zp0; + exec->zp2 = exec->zp0; } /* XXX: We reserve a little more elements on the stack to deal safely */ |