From 8cd6fa28d1b77100491519b8dedb2e113508bf59 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 4 Aug 2009 22:55:44 -0400 Subject: [PATCH] [HB] Fix fatal Sanitizer bug --- src/hb-open-type-private.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh index a51b91e7e..d11f3510b 100644 --- a/src/hb-open-type-private.hh +++ b/src/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) {