allocate the buffer in the object pool.
while (btell(body) < end)
{
uns len = bget_utf8(body);
while (btell(body) < end)
{
uns len = bget_utf8(body);
- byte buf[MAX_ATTR_SIZE];
+ byte *buf = mp_alloc_fast_noalign(o_hdr->pool, len);
- byte type = bgetc(body);
obj_add_attr_ref(o_hdr, type, buf);
}
*body_start = btell(body) - start;
obj_add_attr_ref(o_hdr, type, buf);
}
*body_start = btell(body) - start;