[postgis-tickets] [PostGIS] #3980: [SFCGAL] Potential access to freed memory
PostGIS
trac at osgeo.org
Thu Jan 11 18:42:37 PST 2018
#3980: [SFCGAL] Potential access to freed memory
----------------------+---------------------------
Reporter: lucasvr | Owner: colivier
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.4.3
Component: sfcgal | Version: 2.4.x
Resolution: | Keywords:
----------------------+---------------------------
Comment (by lucasvr):
Sure thing. I am attaching a patch that moves calls to PG_FREE_IF_COPY
near the end of each function, just to be on the safe side. Note that I've
included extra calls to PG_FREE_IF_COPY on conditional branches that call
elog(ERROR). My understanding is that a call to such a function raises an
exception and aborts the execution of the code underneath, so that extra
call should the introduction of memory leaks. Please let me know if that's
not how elog(ERROR) behaves.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3980#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