diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2011-09-08 00:42:54 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2011-09-08 00:42:54 -0400 |
commit | ff0612c2e7df1b86fc702c72e3015a6a5ae39b4c (patch) | |
tree | 6ec134b546c3987867cac33a553e8ad9755205fe | |
parent | 81f2ecafa19b602f950df5a9e6e1b99c4b5ea55e (diff) |
Fix OOB access possibility in old harfbuzz
As reported by Kenichi Ishibashi.
-rw-r--r-- | src/harfbuzz-tibetan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/harfbuzz-tibetan.c b/src/harfbuzz-tibetan.c index bfa31b1..847ac52 100644 --- a/src/harfbuzz-tibetan.c +++ b/src/harfbuzz-tibetan.c @@ -90,7 +90,7 @@ static const unsigned char tibetanForm[0x80] = { #define tibetan_form(c) \ - (TibetanForm)tibetanForm[c - 0x0f40] + ((c) >= 0x0f40 && (c) <= 0x0fc0 ? (TibetanForm)tibetanForm[(c) - 0x0f40] : TibetanOther) static const HB_OpenTypeFeature tibetan_features[] = { { HB_MAKE_TAG('c', 'c', 'm', 'p'), CcmpProperty }, |