Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3:Update
dxflib.17489
0001-check-vertexIndex-which-might-be-1-for-bro...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-check-vertexIndex-which-might-be-1-for-broken-DXF.patch of Package dxflib.17489
From 1eeffc5daf5a06cf6213ffc19e95923cdebb2eb8 Mon Sep 17 00:00:00 2001 From: Andrew Mustun <andrew@qcad.org> Date: Wed, 4 Aug 2021 22:32:43 +0200 Subject: [PATCH] check vertexIndex which might be -1 for broken DXF --- src/3rdparty/dxflib/src/dl_dxf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/3rdparty/dxflib/src/dl_dxf.cpp b/src/3rdparty/dxflib/src/dl_dxf.cpp index c31d68f5a..5df93924a 100644 --- a/src/dl_dxf.cpp +++ b/src/dl_dxf.cpp @@ -1448,10 +1448,10 @@ bool DL_Dxf::handleLWPolylineData(DL_CreationInterface* /*creationInterface*/) { } if (groupCode<=30) { - if (vertexIndex>=0 && vertexIndex<maxVertices) { + if (vertexIndex>=0 && vertexIndex<maxVertices && vertexIndex>=0) { vertices[4*vertexIndex + (groupCode/10-1)] = toReal(groupValue); } - } else if (groupCode==42 && vertexIndex<maxVertices) { + } else if (groupCode==42 && vertexIndex<maxVertices && vertexIndex>=0) { vertices[4*vertexIndex + 3] = toReal(groupValue); } return true; -- 2.36.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor