[PostGIS] #5149: ST_AlphaShape crashes with malformed input (garden test crash)

PostGIS trac at osgeo.org
Tue May 13 01:10:52 PDT 2025


#5149: ST_AlphaShape crashes with malformed input (garden test crash)
---------------------+----------------------------
  Reporter:  robe    |      Owner:  robe
      Type:  defect  |     Status:  closed
  Priority:  high    |  Milestone:  PostGIS SFCGAL
 Component:  sfcgal  |    Version:  master
Resolution:  fixed   |   Keywords:  windows
---------------------+----------------------------
Changes (by Loïc Bartoletti):

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


Old description:

> {{{
> POSTGIS="3.3.0dev 3.2.0-792-g78308862c" [EXTENSION] PGSQL="110"
> GEOS="3.11.0dev-CAPI-1.16.0" SFCGAL="SFCGAL 1.4.1, CGAL 5.3, BOOST
> 1.78.0" PROJ="7.2.1" GDAL="GDAL 3.4.2, released 2022/03/08"
> LIBXML="2.9.9" LIBJSON="0.12" LIBPROTOBUF="1.2.1" WAGYU="0.5.0
> (Internal)" RASTER PostgreSQL 11.2 on x86_64-pc-mingw64, compiled by
> gcc.exe (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0, 64-bit
> }}}
>
> {{{
> SELECT ST_AlphaShape('POLYGON((1 2,1 2,1 2,1 2))', 20.1, false);
> }}}

New description:

 {{{
 POSTGIS="3.3.0dev 3.2.0-792-g78308862c" [EXTENSION] PGSQL="110" GEOS="3.11
 .0dev-CAPI-1.16.0" SFCGAL="SFCGAL 1.4.1, CGAL 5.3, BOOST 1.78.0"
 PROJ="7.2.1" GDAL="GDAL 3.4.2, released 2022/03/08" LIBXML="2.9.9"
 LIBJSON="0.12" LIBPROTOBUF="1.2.1" WAGYU="0.5.0 (Internal)" RASTER
 PostgreSQL 11.2 on x86_64-pc-mingw64, compiled by gcc.exe (x86_64-posix-
 seh-rev0, Built by MinGW-W64 project) 8.1.0, 64-bit
 }}}

 {{{
 SELECT ST_AlphaShape('POLYGON((1 2,1 2,1 2,1 2))', 20.1, false);
 }}}

--
Comment:

 Fixed in SFCGAL 2.1.0
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5149#comment:3>
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