[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Fri Sep 14 08:58:37 UTC 2018


 src/hb-open-file.hh |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 67449c39331babb88f7d29d737895d786cd5da33
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Fri Sep 14 10:58:00 2018 +0200

    Don't dereference offset before check_struct()

diff --git a/src/hb-open-file.hh b/src/hb-open-file.hh
index a1f931d3..38610a8e 100644
--- a/src/hb-open-file.hh
+++ b/src/hb-open-file.hh
@@ -387,10 +387,9 @@ struct ResourceMap
   inline bool sanitize (hb_sanitize_context_t *c, const void *data_base) const
   {
     TRACE_SANITIZE (this);
-    const void *type_base = &(this+typeList);
     return_trace (c->check_struct (this) &&
 		  typeList.sanitize (c, this,
-				     type_base,
+				     &(this+typeList),
 				     data_base));
   }
 


More information about the HarfBuzz mailing list