[pango/harfbuzz-ng] [HB] Fix fatal Sanitizer bug



commit a990ba0d2b8599ee3eab8bea6ac96aec99b1ee1d
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Aug 4 22:55:44 2009 -0400

    [HB] Fix fatal Sanitizer bug

 pango/opentype/hb-open-type-private.hh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/opentype/hb-open-type-private.hh b/pango/opentype/hb-open-type-private.hh
index a51b91e..d11f351 100644
--- a/pango/opentype/hb-open-type-private.hh
+++ b/pango/opentype/hb-open-type-private.hh
@@ -293,7 +293,7 @@ struct Sanitizer
   retry:
     _hb_sanitize_init (&context, blob);
 
-    Type *t = &CAST (Type, context.start, 0);
+    Type *t = &CAST (Type, *DECONST_CHARP(context.start), 0);
 
     sane = t->sanitize (SANITIZE_ARG_INIT);
     if (sane) {



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