[pango/harfbuzz-ng] [HB] Fix another sanitize() bug; hopefully it's the last one



commit 85c2e96bee9c19cec66f2b7fefabcab1bb1fe57f
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Aug 4 23:30:32 2009 -0400

    [HB] Fix another sanitize() bug;  hopefully it's the last one

 pango/opentype/hb-ot-layout-common-private.hh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/opentype/hb-ot-layout-common-private.hh b/pango/opentype/hb-ot-layout-common-private.hh
index df47b07..75ef787 100644
--- a/pango/opentype/hb-ot-layout-common-private.hh
+++ b/pango/opentype/hb-ot-layout-common-private.hh
@@ -48,7 +48,7 @@ struct Record
 {
   inline bool sanitize (SANITIZE_ARG_DEF, const void *base) {
     SANITIZE_DEBUG ();
-    return SANITIZE (tag) == 0 && SANITIZE_BASE (offset, base);
+    return SANITIZE (tag) && SANITIZE_BASE (offset, base);
   }
 
   Tag		tag;		/* 4-byte Tag identifier */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]