[CBDT] Fix thinko!
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 5 Dec 2016 03:36:30 +0000 (19:36 -0800)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 5 Dec 2016 03:36:30 +0000 (19:36 -0800)
src/hb-ot-cbdt-table.hh

index 3bf5794..7269688 100644 (file)
@@ -216,7 +216,7 @@ struct IndexSubtableArray
   inline bool sanitize (hb_sanitize_context_t *c, unsigned int count) const
   {
     TRACE_SANITIZE (this);
-    if (unlikely (!c->check_array (&indexSubtablesZ, indexSubtablesZ[0].static_size, sizeof (count))))
+    if (unlikely (!c->check_array (&indexSubtablesZ, indexSubtablesZ[0].static_size, count)))
       return_trace (false);
     for (unsigned int i = 0; i < count; i++)
       if (unlikely (!indexSubtablesZ[i].sanitize (c, this)))