[PostGIS] #5918: ST_Reskew crashes on ARM machines when processing rasters with infinite values

PostGIS trac at osgeo.org
Wed May 28 20:08:02 PDT 2025


#5918: ST_Reskew crashes on ARM machines when processing rasters with infinite
values
-----------------------+---------------------------
 Reporter:  dmyzl      |      Owner:  pramsey
     Type:  defect     |     Status:  new
 Priority:  medium     |  Milestone:  PostGIS 3.5.4
Component:  postgis    |    Version:  3.5.x
 Keywords:  ST_Reskew  |
-----------------------+---------------------------
 The following SQL causes the server to crash when run on an ARM machine.
 Interestingly, if the first coordinate of the point consists of 308 nines,
 it returns a proper error. But when the number of nines reaches 309 or
 more, the server crashes:

 {{{
 SELECT ST_RESKEW(ST_ASRASTER(
 ST_GEOMFROMTEXT('POINT(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998999999999999999999999999999999999999999999999999999999999999999999999999
 40)'),
 200,
 200,
 NULL,
 NULL,
 ARRAY['8BUI']::text[],
 ARRAY[1]::double precision[],
 ARRAY[0]::double precision[],
 0,
 0,
 false),0.0015);
 }}}

 Environment and database information:

 {{{
 OS:kylin 10 (Azalea)
 CPU:HiSilicon Kunpeng-920 aarch64
 RAM:510G

 PG version:17.4

 postgis_full_version:
 POSTGIS="3.5.2" PGSQL="170" GEOS="3.13.1-CAPI=1.19.2" PROJ=9.3.1
 GDAL="GDAL3.7.2" LIBXML="2.9.8"
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5918>
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