[pango] [HB] Fix bug introduced recently
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango] [HB] Fix bug introduced recently
- Date: Mon, 10 Aug 2009 13:38:04 +0000 (UTC)
commit 005058069f1638e207859c2898129fd1375458d7
Author: Behdad Esfahbod <behdad behdad org>
Date: Sat Aug 8 16:37:22 2009 -0400
[HB] Fix bug introduced recently
pango/opentype/hb-open-type-private.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/opentype/hb-open-type-private.hh b/pango/opentype/hb-open-type-private.hh
index 26c1cac..29e231e 100644
--- a/pango/opentype/hb-open-type-private.hh
+++ b/pango/opentype/hb-open-type-private.hh
@@ -148,7 +148,7 @@ _hb_sanitize_init (hb_sanitize_context_t *context,
#if HB_DEBUG
fprintf (stderr, "sanitize %p init [%p..%p] (%u bytes)\n",
- context->blob, context->start, context->end, context->start - context->end);
+ context->blob, context->start, context->end, context->end - context->start);
#endif
}
@@ -209,7 +209,7 @@ _hb_sanitize_edit (hb_sanitize_context_t *context,
#define SANITIZE_MEM(B,L) \
HB_LIKELY (context->start <= CONST_CHARP(B) && \
CONST_CHARP(B) < context->end && \
- context->end - CONST_CHARP(B) < (L))
+ context->end - CONST_CHARP(B) >= (L))
#define NEUTER(Var, Val) \
(SANITIZE_OBJ (Var) && \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]