Kaydet (Commit) cdd351b1 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#71307 out polygons are limited to 16bit point count

Change-Id: I4dbe9145466d6d93ebd3dea7f4fe434c9ee3de19
üst 0da9b279
......@@ -346,6 +346,11 @@ void EnhWMFReader::ReadAndDrawPolygon(Drawer drawer, const sal_Bool skipFirst)
template <class T>
Polygon EnhWMFReader::ReadPolygon(sal_uInt32 nStartIndex, sal_uInt32 nPoints)
{
bool bRecordOk = nPoints <= SAL_MAX_UINT16;
SAL_WARN_IF(!bRecordOk, "svtools.filter", "polygon record has more polygons than we can handle");
if (!bRecordOk)
return Polygon();
Polygon aPolygon(nPoints);
for (sal_uInt16 i = nStartIndex ; i < nPoints && pWMF->good(); i++ )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment