[geos-devel] [GEOS] #830: Possible memory leak in WKTReader with partial MULTIPOLYGON

GEOS geos-trac at osgeo.org
Sat Apr 15 02:36:11 PDT 2017


#830: Possible memory leak in WKTReader with partial MULTIPOLYGON
-------------------------+---------------------------
 Reporter:  goatbar      |       Owner:  geos-devel@…
     Type:  defect       |      Status:  closed
 Priority:  minor        |   Milestone:
Component:  Default      |     Version:  3.5.0
 Severity:  Unassigned   |  Resolution:  fixed
 Keywords:  wkt fuzzing  |
-------------------------+---------------------------

Comment (by Sandro Santilli <strk@…>):

 In [changeset:"a823bca3dd2b8a9446b465b594b76e9da8b04199/git" a823bca/git]:
 {{{
 #!CommitTicketReference repository="git"
 revision="a823bca3dd2b8a9446b465b594b76e9da8b04199"
 Fix leaks in WKT parser

 Cleanup if failing to parse the WKT MultiLineString, MultiPolygon,
 and GeometryCollection string.

 Wrap parsing in try blocks.
 Catch any exception, cleanup, and rethrow.

 Closes #830
 Includes testcase

 Signed-off-by: Sandro Santilli <strk at kbt.io>
 }}}

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/830#comment:7>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list