[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.6-28-g3fa174a0a
git at osgeo.org
git at osgeo.org
Wed Aug 17 13:41:55 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.0 has been updated
via 3fa174a0a68c7bf8b31733bf0c08f7cd9158c306 (commit)
via caafaab376455fcf8843d35f4fd1f9432fc301ef (commit)
from a91856fe49cdef3675c781645039e927d1a346b4 (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 3fa174a0a68c7bf8b31733bf0c08f7cd9158c306
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Aug 17 13:41:47 2022 -0700
NEWS entry for #5181
diff --git a/NEWS b/NEWS
index 95f3ca1ce..1eadd3de0 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ PostGIS 3.0.7dev
- #4643, Fix upgrade from unpackaged on PostgreSQL >= 13 (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.0.6
2022/07/20
commit caafaab376455fcf8843d35f4fd1f9432fc301ef
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 78672d843..37c99f5a0 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