[postgis-tickets] [PostGIS] #4275: Crash in GEOSisEmpty_r

PostGIS trac at osgeo.org
Fri Jan 18 04:14:12 PST 2019


#4275: Crash in GEOSisEmpty_r
-------------------------+---------------------------
  Reporter:  Algunenano  |      Owner:  Algunenano
      Type:  defect      |     Status:  assigned
  Priority:  medium      |  Milestone:  PostGIS 2.4.7
 Component:  postgis     |    Version:  2.4.x
Resolution:              |   Keywords:
-------------------------+---------------------------

Comment (by Algunenano):

 > GEOSisEmpty looks like it'll just hand back a return value of '2' if
 passed a NULL, so not sure if that's it...?

 No, it returns 2 if the geos handle (`extHandle`) is NULL, but it doesn't
 check `g1` before dereferencing it. None of the other functions does this
 check, so I understand it's the intended behaviour.

 I'm going to check all the usages of `GEOSisEmpty` and try to verify that
 none of them can pass a NULL pointer as geometry.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4275#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list