[geos-devel] [GEOS] #1119: Buffer memory issue

GEOS geos-trac at osgeo.org
Thu Jun 3 14:17:01 PDT 2021

#1119: Buffer memory issue
 Reporter:  kalenik     |       Owner:  geos-devel@…
     Type:  defect      |      Status:  new
 Priority:  major       |   Milestone:  3.9.2
Component:  Default     |     Version:  3.9.0
 Severity:  Unassigned  |  Resolution:
 Keywords:              |

Comment (by mdavis):

 Replying to [comment:9 dbaston]:
 > I can't reproduce a crash here. When running the attached example under
 limited memory (after plugging in ERROR and NOTICE handlers to
 `initGEOS`), the ERROR handler is called with the text "std::bad_alloc".

 Interesting.  The OP says he encountered this in PostGIS - but wouldn't
 PostGIS have set those handlers as well?

 In any case, we really want to try and return an actual result, rather
 than a crash or an error.

Ticket URL: <https://trac.osgeo.org/geos/ticket/1119#comment:10>
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