[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.1-32-g079c786
git at osgeo.org
git at osgeo.org
Thu Jul 30 02:21:06 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-3.0 has been updated
via 079c786181a39065f886a2996d4c59451d8e8645 (commit)
from 15a360ed73beca3143c1ca72b2a1fb1eb5e9d008 (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 079c786181a39065f886a2996d4c59451d8e8645
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
References #4691
diff --git a/NEWS b/NEWS
index 70eb7d0..5c9921f 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ PostGIS 3.0.2
- #4702, Legacy ST_Locate_Between_Measures is wrong (Kaplas80)
- #4699, crash on null input to ST_Union(raster, otherarg) (Jaime Casanova, 2ndQuadrant)
- #4716, Fix several issues with pkg-config in the configure script (Raúl Marín)
+ - #4691, Fix segfault during gist index creation with empty geometries (Raúl Marín)
PostGIS 3.0.1
2020/02/20
diff --git a/postgis/gserialized_gist_nd.c b/postgis/gserialized_gist_nd.c
index 8475446..2ea7a1c 100644
--- a/postgis/gserialized_gist_nd.c
+++ b/postgis/gserialized_gist_nd.c
@@ -173,7 +173,8 @@ gidx_merge(GIDX **b_union, GIDX *b_new)
/* Q: Unknown is 0 dimensions. Should we never modify unknown instead? (ticket #4232) */
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