projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9433c21
)
[old] Clear offset array
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 6 Sep 2012 19:29:29 +0000
(15:29 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 6 Sep 2012 19:29:29 +0000
(15:29 -0400)
src/hb-old.cc
patch
|
blob
|
history
diff --git
a/src/hb-old.cc
b/src/hb-old.cc
index
197e620
..
529bffa
100644
(file)
--- a/
src/hb-old.cc
+++ b/
src/hb-old.cc
@@
-337,6
+337,9
@@
retry:
ALLOCATE_ARRAY (HB_GlyphAttributes, item.attributes, num_glyphs);
ALLOCATE_ARRAY (HB_Fixed, item.advances, num_glyphs);
ALLOCATE_ARRAY (HB_FixedPoint, item.offsets, num_glyphs);
+ /* Apparently in some cases the offsets array will not be fully assigned to.
+ * Clear it. */
+ memset (item.offsets, 0, num_glyphs * sizeof (item.offsets[0]));
uint32_t *vis_clusters;
ALLOCATE_ARRAY (uint32_t, vis_clusters, num_glyphs);