diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-21 22:24:47 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-21 22:24:47 +0000 |
commit | c7f031f2039aa6b8c681e377849208ebea4b6f01 (patch) | |
tree | 0928d43ea954476c6330c5d570966380ac030bf8 /draw | |
parent | 544fb8ec397bbc5ff847a764e4885144ed852575 (diff) | |
download | mupdf-c7f031f2039aa6b8c681e377849208ebea4b6f01.tar.xz |
Clear glyph cache key struct with memset to make sure we don't hash uninitialized padding.
Diffstat (limited to 'draw')
-rw-r--r-- | draw/glyphcache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/draw/glyphcache.c b/draw/glyphcache.c index 094908ac..74408862 100644 --- a/draw/glyphcache.c +++ b/draw/glyphcache.c @@ -85,6 +85,7 @@ fz_renderglyph(fz_glyphcache *cache, fz_font *font, int cid, fz_matrix ctm) return nil; } + memset(&key, 0, sizeof key); key.font = font; key.cid = cid; key.a = ctm.a * 65536; |