Fix sanitize or Context Rule

Fixes https://github.com/harfbuzz/harfbuzz/issues/1110
This commit is contained in:
Behdad Esfahbod 2018-09-10 15:45:32 +02:00
parent 20a11a824d
commit 5dfd6e0762
1 changed files with 1 additions and 1 deletions

View File

@ -1267,7 +1267,7 @@ struct Rule
return_trace (inputCount.sanitize (c) && return_trace (inputCount.sanitize (c) &&
lookupCount.sanitize (c) && lookupCount.sanitize (c) &&
c->check_range (inputZ, c->check_range (inputZ,
inputZ[0].static_size * inputCount + inputZ[0].static_size * (inputCount ? inputCount - 1 : 0) +
LookupRecord::static_size * lookupCount)); LookupRecord::static_size * lookupCount));
} }