| Index: third_party/ots/src/math.cc
|
| diff --git a/third_party/ots/src/math.cc b/third_party/ots/src/math.cc
|
| index 0688071d7c82113a4efc239b36c92df7a345d510..36417dc2967139bd7673e2f0437cbc064f8bea15 100644
|
| --- a/third_party/ots/src/math.cc
|
| +++ b/third_party/ots/src/math.cc
|
| @@ -448,6 +448,11 @@ bool ParseMathGlyphConstructionSequence(const ots::Font *font,
|
| uint16_t offset_coverage,
|
| uint16_t glyph_count,
|
| const unsigned sequence_end) {
|
| + // Zero glyph count, nothing to parse.
|
| + if (!glyph_count) {
|
| + return true;
|
| + }
|
| +
|
| // Check coverage table.
|
| if (offset_coverage < sequence_end || offset_coverage >= length) {
|
| return OTS_FAILURE();
|
|
|