[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.6-29-gd29282e5f

git at osgeo.org git at osgeo.org
Wed Aug 17 13:40:57 PDT 2022


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.1 has been updated
       via  d29282e5f93f697e600df2bd49438fefb02da9a1 (commit)
       via  330a37b1843fc5871c7d4ef4700ca11df2cc7516 (commit)
      from  713e25639bca30cc55d1b8b75999b37c45b1ec4e (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 d29282e5f93f697e600df2bd49438fefb02da9a1
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Aug 17 13:40:46 2022 -0700

    NEWS entry for #5181

diff --git a/NEWS b/NEWS
index 88868ea49..d5c54593c 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ PostGIS 3.1.7dev
   - #5202, Guard against downgrades (Sandro Santilli)
   - #5209, #5210, Fix upgrades with CVE-2022-2625 PostgreSQL fix
   - #5032, Correctly read extent off multi-key GIST indexes (Paul Ramsey)
+  - #5171, Reset proj error state after failed parse (Paul Ramsey)
 
 
 PostGIS 3.1.6

commit 330a37b1843fc5871c7d4ef4700ca11df2cc7516
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Aug 17 13:26:05 2022 -0700

    Reset errno in case of bad projtext parse, References #5181

diff --git a/liblwgeom/lwgeom_transform.c b/liblwgeom/lwgeom_transform.c
index f9aedfbe7..30e6c6e9c 100644
--- a/liblwgeom/lwgeom_transform.c
+++ b/liblwgeom/lwgeom_transform.c
@@ -405,6 +405,7 @@ lwgeom_transform_from_str(LWGEOM *geom, const char* instr, const char* outstr)
 		PJ *pj_in = proj_create(NULL, instr);
 		if (!pj_in)
 		{
+			proj_errno_reset(NULL);
 			lwerror("could not parse proj string '%s'", instr);
 		}
 		proj_destroy(pj_in);
@@ -412,6 +413,7 @@ lwgeom_transform_from_str(LWGEOM *geom, const char* instr, const char* outstr)
 		PJ *pj_out = proj_create(NULL, outstr);
 		if (!pj_out)
 		{
+			proj_errno_reset(NULL);
 			lwerror("could not parse proj string '%s'", outstr);
 		}
 		proj_destroy(pj_out);

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

Summary of changes:
 NEWS                         | 1 +
 liblwgeom/lwgeom_transform.c | 2 ++
 2 files changed, 3 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list