[SCM] PostGIS branch master updated. 3.6.0rc2-305-g3b3488ddf
git at osgeo.org
git at osgeo.org
Fri Jan 23 11:40:14 PST 2026
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 3b3488ddf4699a527092417067408b85f84d9e6c (commit)
via 19f776855f7487527c129ef96ca413dc5492b222 (commit)
from 41d995e10a9450f5e31e1b2030d64df16c6135cd (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 3b3488ddf4699a527092417067408b85f84d9e6c
Merge: 41d995e10 19f776855
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Jan 23 11:40:09 2026 -0800
Merge branch 'ProjectMutilation-gml_is_srs_axis_order_gis_friendly-add-malloc-res-check'
commit 19f776855f7487527c129ef96ca413dc5492b222
Author: Maksim Korotkov <m.korotkov at postgrespro.ru>
Date: Fri Jan 23 22:00:56 2026 +0300
Add malloc handling in gml_is_srs_axis_order_gis_friendly()
If malloc fails, srtext_horizontal is NULL. This is an unlikely event
but it can lead to a dereference of a null pointer.
Signed-off-by: Maksim Korotkov <m.korotkov at postgrespro.ru>
diff --git a/postgis/lwgeom_in_gml.c b/postgis/lwgeom_in_gml.c
index ae0b96411..5f3a5acb6 100644
--- a/postgis/lwgeom_in_gml.c
+++ b/postgis/lwgeom_in_gml.c
@@ -405,6 +405,12 @@ gml_is_srs_axis_order_gis_friendly(int32_t srid)
{
char* ptr;
char* srtext_horizontal = (char*) malloc(strlen(srtext) + 1);
+
+ if (!srtext_horizontal)
+ {
+ SPI_finish();
+ lwpgerror("gml_is_srs_axis_order_gis_friendly: could not allocate memory");
+ }
strcpy(srtext_horizontal, srtext);
/* Remove the VERT_CS part if we are in a COMPD_CS */
-----------------------------------------------------------------------
Summary of changes:
postgis/lwgeom_in_gml.c | 6 ++++++
1 file changed, 6 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list