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

PostGIS trac at osgeo.org
Fri Feb 2 23:40:57 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):

 We're almost there :)
 in sfcgal_make_solid, the elog line will exit
 the function, so adding a PG_FREE_IF_COPY there
 (before elog ERROR) might be advisable.

 Just in case this call is coming from some function handling the exception
 and continuing keeping the memory context alive for longer than
 expected...

 Finally please give me your full name and email address
 for crediting  you in the commit log :)

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