diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-08-13 22:28:17 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-08-13 22:28:17 +0000 |
commit | df2e2e3f15b4285d232fbd5c6583458e0f15d496 (patch) | |
tree | 1ad6bb707940a5c0f7fcf2c1054253a2ee73cf0c /Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cff2-interp-cs.hh | |
parent | f44080f58b866fbc798cda2e0f9eb9f7c4ed943d (diff) |
harfbuzz-2.7.1
git-svn-id: svn://tug.org/texlive/trunk@56107 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cff2-interp-cs.hh')
-rw-r--r-- | Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cff2-interp-cs.hh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cff2-interp-cs.hh b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cff2-interp-cs.hh index afbc4a7cb39..332ece31cd4 100644 --- a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cff2-interp-cs.hh +++ b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-cff2-interp-cs.hh @@ -133,9 +133,11 @@ struct cff2_cs_interp_env_t : cs_interp_env_t<blend_arg_t, CFF2Subrs> region_count = varStore->varStore.get_region_index_count (get_ivs ()); if (do_blend) { - scalars.resize (region_count); - varStore->varStore.get_scalars (get_ivs (), coords, num_coords, - &scalars[0], region_count); + if (unlikely (!scalars.resize (region_count))) + set_error (); + else + varStore->varStore.get_scalars (get_ivs (), coords, num_coords, + &scalars[0], region_count); } seen_blend = true; } |