From 90482b68178b687c0f0a3f82cd6a36b2c0bb9384 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 4 Aug 2009 23:24:35 -0400 Subject: [PATCH] [HB] Fix a couple other sanitize() bugs --- src/hb-ot-layout-gpos-private.hh | 4 ++-- src/hb-ot-layout-gsub-private.hh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-layout-gpos-private.hh b/src/hb-ot-layout-gpos-private.hh index bbf277317..70dc79151 100644 --- a/src/hb-ot-layout-gpos-private.hh +++ b/src/hb-ot-layout-gpos-private.hh @@ -1497,7 +1497,7 @@ struct PosLookup : Lookup inline bool sanitize (SANITIZE_ARG_DEF) { SANITIZE_DEBUG (); - if (Lookup::sanitize (SANITIZE_ARG)) return false; + if (!Lookup::sanitize (SANITIZE_ARG)) return false; OffsetArrayOf &list = (OffsetArrayOf &) subTable; return SANITIZE_THIS (list); } @@ -1529,7 +1529,7 @@ struct GPOS : GSUBGPOS bool sanitize (SANITIZE_ARG_DEF) { SANITIZE_DEBUG (); - if (GSUBGPOS::sanitize (SANITIZE_ARG)) return false; + if (!GSUBGPOS::sanitize (SANITIZE_ARG)) return false; OffsetTo &list = CAST(OffsetTo, lookupList, 0); return SANITIZE_THIS (list); } diff --git a/src/hb-ot-layout-gsub-private.hh b/src/hb-ot-layout-gsub-private.hh index 7b421dbb8..a46006df5 100644 --- a/src/hb-ot-layout-gsub-private.hh +++ b/src/hb-ot-layout-gsub-private.hh @@ -822,7 +822,7 @@ struct SubstLookup : Lookup inline bool sanitize (SANITIZE_ARG_DEF) { SANITIZE_DEBUG (); - if (Lookup::sanitize (SANITIZE_ARG)) return false; + if (!Lookup::sanitize (SANITIZE_ARG)) return false; OffsetArrayOf &list = (OffsetArrayOf &) subTable; return SANITIZE_THIS (list); } @@ -855,7 +855,7 @@ struct GSUB : GSUBGPOS bool sanitize (SANITIZE_ARG_DEF) { SANITIZE_DEBUG (); - if (GSUBGPOS::sanitize (SANITIZE_ARG)) return false; + if (!GSUBGPOS::sanitize (SANITIZE_ARG)) return false; OffsetTo &list = CAST(OffsetTo, lookupList, 0); return SANITIZE_THIS (list); }