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

GEOS geos-trac at osgeo.org
Sat Apr 15 01:08:20 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  |
-------------------------+---------------------------
Changes (by Sandro Santilli <strk@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"84477476f382c4d40860879dfbbc96b6e1d16f39/git" 8447747/git]:
 {{{
 #!CommitTicketReference repository="git"
 revision="84477476f382c4d40860879dfbbc96b6e1d16f39"
 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:6>
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