From: Behdad Esfahbod Date: Mon, 10 Sep 2018 13:45:32 +0000 (+0200) Subject: Fix sanitize or Context Rule X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dfd6e07626a9022a995eb7fa16767eff66c6047;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Fix sanitize or Context Rule Fixes https://github.com/harfbuzz/harfbuzz/issues/1110 --- diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 315951a..bd4611d 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -1267,7 +1267,7 @@ struct Rule return_trace (inputCount.sanitize (c) && lookupCount.sanitize (c) && c->check_range (inputZ, - inputZ[0].static_size * inputCount + + inputZ[0].static_size * (inputCount ? inputCount - 1 : 0) + LookupRecord::static_size * lookupCount)); }