[postgis-tickets] [PostGIS] #4273: too permissive WKT parser

PostGIS trac at osgeo.org
Thu Jan 10 03:48:11 PST 2019


#4273: too permissive WKT parser
----------------------+---------------------------
  Reporter:  komzpa   |      Owner:  pramsey
      Type:  defect   |     Status:  reopened
  Priority:  medium   |  Milestone:  PostGIS 2.5.2
 Component:  postgis  |    Version:  2.4.x
Resolution:           |   Keywords:
----------------------+---------------------------
Changes (by Algunenano):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 This added a memory leak (detected in Travis): https://travis-
 ci.org/postgis/postgis/jobs/477506330

 {{{
 ==6378==
 ==6378== HEAP SUMMARY:
 ==6378==     in use at exit: 7,977 bytes in 200 blocks
 ==6378==   total heap usage: 126,917 allocs, 126,717 frees, 6,896,829
 bytes allocated
 ==6378==
 ==6378== 120 (32 direct, 88 indirect) bytes in 1 blocks are definitely
 lost in loss record 198 of 200
 ==6378==    at 0x483577F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind
 /vgpreload_memcheck-amd64-linux.so)
 ==6378==    by 0x486D674: lwpoint_construct (lwpoint.c:137)
 ==6378==    by 0x4884C56: wkt_parser_point_new (lwin_wkt.c:345)
 ==6378==    by 0x4882724: wkt_yyparse (lwin_wkt_parse.y:514)
 ==6378==    by 0x4882CE5: lwgeom_parse_wkt (lwin_wkt_parse.y:68)
 ==6378==    by 0x14361D: cu_wkt_in (cu_in_wkt.c:56)
 ==6378==    by 0x14442B: test_wkt_in_point (cu_in_wkt.c:71)
 ==6378==    by 0x4933336: ??? (in /usr/lib/x86_64-linux-
 gnu/libcunit.so.1.0.1)
 ==6378==    by 0x493356C: ??? (in /usr/lib/x86_64-linux-
 gnu/libcunit.so.1.0.1)
 ==6378==    by 0x49339DD: CU_run_all_tests (in /usr/lib/x86_64-linux-
 gnu/libcunit.so.1.0.1)
 ==6378==    by 0x110432: main (cu_tester.c:177)
 }}}

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