Avoid heap-buffer-overflow

[ChangeLog][QOutlineMapper] Avoid heap-buffer-overflow

Fixes: oss-fuzz-24615
Pick-to: 5.12 5.15
Change-Id: Ia67e1fb830850d04f068d8b5c009687f3deff156
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
Robert Loehning 2020-09-24 17:33:06 +02:00
parent a51b7844ca
commit 74146e0102

View File

@ -78,6 +78,8 @@ void QOutlineMapper::curveTo(const QPointF &cp1, const QPointF &cp2, const QPoin
printf("QOutlineMapper::curveTo() (%f, %f)\n", ep.x(), ep.y());
#endif
if (!m_elements.size())
return;
QBezier bezier = QBezier::fromPoints(m_elements.last(), cp1, cp2, ep);
bool outsideClip = false;