[postgis-tickets] [SCM] PostGIS branch stable-2.4 updated. 83eba0d304ddfb0b474827b5c2dba9b9663651a5

git at osgeo.org git at osgeo.org
Thu Jul 30 03:11:54 PDT 2020


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-2.4 has been updated
       via  83eba0d304ddfb0b474827b5c2dba9b9663651a5 (commit)
      from  69611d94fdf1d717fe749d25f5b30104622b6155 (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 83eba0d304ddfb0b474827b5c2dba9b9663651a5
Author: Raúl Marín <git at rmr.ninja>
Date:   Wed Jul 29 17:43:57 2020 +0200

    Avoid double freeing due to gidx_merge
    
    Closes #4691

diff --git a/NEWS b/NEWS
index 4f36151..acd2775 100644
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,7 @@ PostGIS 2.4.9
   - #4652, Fix several memory related bugs in ST_GeomFromGML (Raúl Marín)
   - #4661, Fix access to spatial_ref_sys with a non default schema (Raúl Marín)
   - #4699, crash on null input to ST_Union(raster, otherarg) (Jaime Casanova, 2ndQuadrant)
+  - #4691, Fix segfault during gist index creation with empty geometries (Raúl Marín)
 
 
 PostGIS 2.4.8
diff --git a/postgis/gserialized_gist_nd.c b/postgis/gserialized_gist_nd.c
index c9aaa2b..abfdfd3 100644
--- a/postgis/gserialized_gist_nd.c
+++ b/postgis/gserialized_gist_nd.c
@@ -184,7 +184,8 @@ static void gidx_merge(GIDX **b_union, GIDX *b_new)
 	/* Merge of unknown and known is known */
 	if( gidx_is_unknown(*b_union) )
 	{
-		*b_union = b_new;
+		pfree(*b_union);
+		*b_union = gidx_copy(b_new);
 		return;
 	}
 

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

Summary of changes:
 NEWS                          | 1 +
 postgis/gserialized_gist_nd.c | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list