Fix another sanitize bug
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 9 Oct 2015 18:23:15 +0000 (14:23 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 9 Oct 2015 18:23:15 +0000 (14:23 -0400)
Also discovered by "libFuzzer".

src/hb-open-type-private.hh

index aeb3302..e55d2e1 100644 (file)
@@ -920,7 +920,7 @@ struct ArrayOf
   inline bool sanitize_shallow (hb_sanitize_context_t *c) const
   {
     TRACE_SANITIZE (this);
-    return_trace (c->check_struct (this) && c->check_array (this, Type::static_size, len));
+    return_trace (c->check_struct (this) && c->check_array (array, Type::static_size, len));
   }
 
   public: