提交 47ef931f 编写于 作者: B Behdad Esfahbod

[buffer] Make sure out_info = info during GPOS

上级 ae63cf20
...@@ -126,7 +126,10 @@ hb_buffer_t::get_scratch_buffer (unsigned int *size) ...@@ -126,7 +126,10 @@ hb_buffer_t::get_scratch_buffer (unsigned int *size)
{ {
have_output = false; have_output = false;
have_positions = false; have_positions = false;
out_len = 0; out_len = 0;
out_info = info;
*size = allocated * sizeof (pos[0]); *size = allocated * sizeof (pos[0]);
return pos; return pos;
} }
...@@ -153,12 +156,11 @@ hb_buffer_t::reset (void) ...@@ -153,12 +156,11 @@ hb_buffer_t::reset (void)
idx = 0; idx = 0;
len = 0; len = 0;
out_len = 0; out_len = 0;
out_info = info;
serial = 0; serial = 0;
memset (allocated_var_bytes, 0, sizeof allocated_var_bytes); memset (allocated_var_bytes, 0, sizeof allocated_var_bytes);
memset (allocated_var_owner, 0, sizeof allocated_var_owner); memset (allocated_var_owner, 0, sizeof allocated_var_owner);
out_info = info;
} }
void void
...@@ -202,6 +204,9 @@ hb_buffer_t::clear_positions (void) ...@@ -202,6 +204,9 @@ hb_buffer_t::clear_positions (void)
have_output = false; have_output = false;
have_positions = true; have_positions = true;
out_len = 0;
out_info = info;
memset (pos, 0, sizeof (pos[0]) * len); memset (pos, 0, sizeof (pos[0]) * len);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册