[postgis-tickets] [PostGIS] #3908: Memory leak when lwgeom_simplify returns an empty geom

PostGIS trac at osgeo.org
Wed Oct 18 06:54:57 PDT 2017


#3908: Memory leak when lwgeom_simplify returns an empty geom
------------------------+---------------------------
 Reporter:  Algunenano  |      Owner:  strk
     Type:  defect      |     Status:  new
 Priority:  high        |  Milestone:  PostGIS 2.5.0
Component:  liblwgeom   |    Version:  trunk
 Keywords:              |
------------------------+---------------------------
 Detected with asan. I think only trunk is affected.

 Example:
 {{{
 Direct leak of 40 byte(s) in 1 object(s) allocated from:
     #0 0x7f67953bbae9 in __interceptor_malloc /build/gcc-
 multilib/src/gcc/libsanitizer/asan/asan_malloc_linux.cc:62
     #1 0x7f6794fd8d8e in lwpoly_clone_deep
 /home/raul/dev/public/postgis/liblwgeom/lwpoly.c:231
     #2 0x7f6794fd1298 in lwgeom_simplify
 /home/raul/dev/public/postgis/liblwgeom/lwgeom.c:1825
     #3 0x55cc92159ea1 in test_lwgeom_simplify
 /home/raul/dev/public/postgis/liblwgeom/cunit/cu_algorithm.c:1072
     #4 0x7f6794b40087 in run_single_test /tmp/yaourt-tmp-raul/aur-
 cunit/src/CUnit-2.1-3/CUnit/Sources/Framework/TestRun.c:991
 }}}

 Github PR: https://github.com/postgis/postgis/pull/166

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3908>
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