From 011b4027db761fcfe7079ebabc1bb2865e05e889 Mon Sep 17 00:00:00 2001 From: Mark Roszko Date: Sat, 23 Oct 2021 15:46:58 +0000 Subject: [PATCH] Add vertexIndex bounds check --- dxflib_qcad/dl_dxf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dxflib_qcad/dl_dxf.cpp b/dxflib_qcad/dl_dxf.cpp index a76cf1611f..28e2a96db2 100644 --- a/dxflib_qcad/dl_dxf.cpp +++ b/dxflib_qcad/dl_dxf.cpp @@ -1714,7 +1714,7 @@ bool DL_Dxf::handleLWPolylineData( DL_CreationInterface* /*creationInterface* vertices[4 * vertexIndex + (groupCode / 10 - 1)] = toReal( groupValue ); } } - else if( groupCode==42 && vertexIndex= 0 ) { vertices[4 * vertexIndex + 3] = toReal( groupValue ); }