fuzz fix
This commit is contained in:
parent
f325633a9b
commit
6c9abf4084
1 changed files with 2 additions and 0 deletions
|
@ -649,6 +649,8 @@ proc parseGlyphPath(buf: string, offset, numberOfContours: int): Path =
|
||||||
x = buf.readInt16(i).swap().int
|
x = buf.readInt16(i).swap().int
|
||||||
i += 2
|
i += 2
|
||||||
prevX += x
|
prevX += x
|
||||||
|
if point >= points.len:
|
||||||
|
failUnsupported()
|
||||||
points[point].x = prevX.float32
|
points[point].x = prevX.float32
|
||||||
points[point].isOnCurve = (flag and 1) != 0
|
points[point].isOnCurve = (flag and 1) != 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue