[postgis-tickets] [PostGIS] #3980: [SFCGAL] Potential access to freed memory

PostGIS trac at osgeo.org
Tue Jan 30 12:40:10 PST 2018


#3980: [SFCGAL] Potential access to freed memory
----------------------+---------------------------
  Reporter:  lucasvr  |      Owner:  colivier
      Type:  defect   |     Status:  new
  Priority:  medium   |  Milestone:  PostGIS 2.4.4
 Component:  sfcgal   |    Version:  2.4.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by strk):

 The POSTGIS2SFCGALGeometry might be making a deep copy,
 in which case you don't need to postpone the PG_FREE_IF_COPY
 if its inputs, can you check ?

 The final lines instead (postponing freeing inputs to
 lwgeom_from_gserialized) are really needed.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3980#comment:6>
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