提交 0f85edb7 编写于 作者: B Behdad Esfahbod

[morx] Another end-of-text corner case

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10990
上级 55d5ea66
......@@ -412,6 +412,8 @@ struct LigatureSubtable
if (uoffset & 0x20000000)
uoffset += 0xC0000000;
int32_t offset = (int32_t) uoffset;
if (buffer->idx >= buffer->len)
return false; // TODO Work on previous instead?
unsigned int component_idx = buffer->cur().codepoint + offset;
const HBUINT16 &componentData = component[component_idx];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册