[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Sat Jan 2 05:26:07 PST 2016


 src/hb-ot-head-table.hh |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit d0adc80965506810820f9ec165b8df80cc8907e3
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sat Jan 2 13:25:18 2016 +0000

    Check magicNumber in head table during sanitize

diff --git a/src/hb-ot-head-table.hh b/src/hb-ot-head-table.hh
index fc351cf..60644be 100644
--- a/src/hb-ot-head-table.hh
+++ b/src/hb-ot-head-table.hh
@@ -55,7 +55,9 @@ struct head
   inline bool sanitize (hb_sanitize_context_t *c) const
   {
     TRACE_SANITIZE (this);
-    return_trace (c->check_struct (this) && likely (version.major == 1));
+    return_trace (c->check_struct (this) &&
+		  version.major == 1 &&
+		  magicNumber == 0x5F0F3CF5u);
   }
 
   protected:


More information about the HarfBuzz mailing list