[postgis-tickets] [SCM] PostGIS branch stable-3.3 updated. 3.3.2-17-geb6a369a0

git at osgeo.org git at osgeo.org
Mon Feb 13 15:09:54 PST 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, stable-3.3 has been updated
       via  eb6a369a06e5beb07184dda86d6e6b1ae883e1c6 (commit)
       via  dd85bbc336ecf796d7d4df18a189104308129454 (commit)
      from  e60d72a80d2e5ccd9d22fcfe61120a34f101dea9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit eb6a369a06e5beb07184dda86d6e6b1ae883e1c6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Feb 13 15:09:49 2023 -0800

    News entry for #5313

diff --git a/NEWS b/NEWS
index 755e87b2b..6bab1cbf1 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ YYYY/MM/DD
            when no edge side-faces are found (Sandro Santilli)
   - #5329, Fix downgrade protection introduced in 3.3.0 (Sandro Santilli)
   - #5332, Keep proj errors from percolating into PgSQL log (Paul Ramsey)
+  - #5313, Fix memory access issue in ST_InterpolateRaster (Paul Ramsey)
 
 
 PostGIS 3.3.2

commit dd85bbc336ecf796d7d4df18a189104308129454
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Feb 13 15:06:25 2023 -0800

    Detoast Datum before casting result to pointer, references #5313

diff --git a/raster/rt_pg/rtpg_gdal.c b/raster/rt_pg/rtpg_gdal.c
index 095f4c8dd..9a982f36e 100644
--- a/raster/rt_pg/rtpg_gdal.c
+++ b/raster/rt_pg/rtpg_gdal.c
@@ -672,7 +672,7 @@ Datum RASTER_InterpolateRaster(PG_FUNCTION_ARGS)
 	LWGEOM *lwgeom;
 	double *xcoords, *ycoords, *zcoords;
 
-	GSERIALIZED *gser = (GSERIALIZED*)PG_GETARG_POINTER(0);
+	GSERIALIZED *gser = (GSERIALIZED*)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
 
 	/* Z value is required to drive the grid heights */
 	if (!gserialized_has_z(gser))

-----------------------------------------------------------------------

Summary of changes:
 NEWS                     | 1 +
 raster/rt_pg/rtpg_gdal.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list