commit | c521e793bd6c1dafacb94253a45b9c70ab38525e | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Jan 18 21:51:05 2012 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed Jan 18 21:51:05 2012 -0500 |
tree | e3d68e461d963b39ae605d0b5d63e7a57da7b0b9 | |
parent | 03408ce73d003ed4e58e3f8472f9445e72b86bee [diff] [blame] |
Fix OOB in replace_glyph() Patch from Kenichi Ishibashi.
diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 3e25b15..e8bdfb1 100644 --- a/src/hb-buffer.cc +++ b/src/hb-buffer.cc
@@ -317,6 +317,8 @@ void hb_buffer_t::replace_glyph (hb_codepoint_t glyph_index) { + if (!make_room_for (1, 1)) return; + out_info[out_len] = info[idx]; out_info[out_len].codepoint = glyph_index;