[SCM] PostGIS branch master updated. 3.4.0rc1-1080-g9eefe39f1

git at osgeo.org git at osgeo.org
Tue Apr 2 03:18:02 PDT 2024


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, master has been updated
       via  9eefe39f1c33c7e294ff181183e84500beef9bcf (commit)
      from  943215120c9fe63de0523f9560ca6a1a44e329aa (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 9eefe39f1c33c7e294ff181183e84500beef9bcf
Author: Sandro Santilli <strk at kbt.io>
Date:   Tue Apr 2 12:17:08 2024 +0200

    Do not attempt to release non-allocated face MBR
    
    Fixes crash in _RegisterMissingFaces internal function
    Closes #5684

diff --git a/liblwgeom/topo/lwgeom_topo_polygonizer.c b/liblwgeom/topo/lwgeom_topo_polygonizer.c
index 75b9c4132..44c29a01d 100644
--- a/liblwgeom/topo/lwgeom_topo_polygonizer.c
+++ b/liblwgeom/topo/lwgeom_topo_polygonizer.c
@@ -789,7 +789,12 @@ _lwt_CheckFacesExist(LWT_TOPOLOGY *topo)
 	  PGTOPO_BE_ERROR();
 	  return -1;
   }
-  if ( faces ) _lwt_release_faces(faces, nelems);
+  if ( faces )
+  {
+    /* we do not call _lwt_release_faces because we are not asking
+     * for the MBR so there are no nested objects to release */
+    lwfree(faces);
+  }
   return nelems;
 }
 

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

Summary of changes:
 liblwgeom/topo/lwgeom_topo_polygonizer.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list