Commit c4d56e4e authored by Adam Jackson's avatar Adam Jackson 🥃

Bug #372: Prevent a crash in XPolygonRegion when called with a bogus point...

Bug #372: Prevent a crash in XPolygonRegion when called with a bogus point count. Reported by Andreas Luik.
parent 92487437
......@@ -517,6 +517,8 @@ XPolygonRegion(Pts, Count, rule)
}
return(region);
}
if (Count < 2) return region;
if (! (pETEs = (EdgeTableEntry *)
Xmalloc((unsigned) (sizeof(EdgeTableEntry) * Count))))
......
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