[pango/harfbuzz-ng] [HB] Fix a couple other sanitize() bugs
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango/harfbuzz-ng] [HB] Fix a couple other sanitize() bugs
- Date: Wed, 5 Aug 2009 19:33:25 +0000 (UTC)
commit 2e28925934eac99d59ba3a9257071e0e735d0819
Author: Behdad Esfahbod <behdad behdad org>
Date: Tue Aug 4 23:24:35 2009 -0400
[HB] Fix a couple other sanitize() bugs
pango/opentype/hb-ot-layout-gpos-private.hh | 4 ++--
pango/opentype/hb-ot-layout-gsub-private.hh | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pango/opentype/hb-ot-layout-gpos-private.hh b/pango/opentype/hb-ot-layout-gpos-private.hh
index bbf2773..70dc791 100644
--- a/pango/opentype/hb-ot-layout-gpos-private.hh
+++ b/pango/opentype/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<PosLookupSubTable> &list = (OffsetArrayOf<PosLookupSubTable> &) 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<PosLookupList> &list = CAST(OffsetTo<PosLookupList>, lookupList, 0);
return SANITIZE_THIS (list);
}
diff --git a/pango/opentype/hb-ot-layout-gsub-private.hh b/pango/opentype/hb-ot-layout-gsub-private.hh
index 7b421db..a46006d 100644
--- a/pango/opentype/hb-ot-layout-gsub-private.hh
+++ b/pango/opentype/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<SubstLookupSubTable> &list = (OffsetArrayOf<SubstLookupSubTable> &) 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<SubstLookupList> &list = CAST(OffsetTo<SubstLookupList>, lookupList, 0);
return SANITIZE_THIS (list);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]