From 21f50a4d6cc2ed3c7b8124e5c54b1fc1f5265883 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 15 Sep 2026 14:54:59 +0200 Subject: [PATCH] fixed potential crash when rendering SVG --- drawing.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drawing.cpp b/drawing.cpp index 98683b06..1a602b02 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -2128,11 +2128,14 @@ void dqi_poly::draw() { #if CAP_SVG if(svg::in) { + if(isize(glcoords) > POLYMAX) continue; + bool bad = false; - for(int i=0; i