[postgis-tickets] [SCM] PostGIS branch main updated. 3.2.0alpha1-33-g71e5d2c

git at osgeo.org git at osgeo.org
Mon Sep 27 10:44:44 PDT 2021


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, main has been updated
       via  71e5d2cfce41904c6eb5c51091d3b8e3d1478b50 (commit)
      from  1ffff63a65cf3bc6064de5266175fbff3ba71955 (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 71e5d2cfce41904c6eb5c51091d3b8e3d1478b50
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Sep 27 19:36:45 2021 +0200

    Enable -Wall by default and fix a warning reported by 10.3 with it

diff --git a/configure.ac b/configure.ac
index d44af90..3532805 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1132,6 +1132,9 @@ dnl
 AC_ARG_ENABLE([debug], AC_HELP_STRING([--enable-debug], [Enable debugging code and flags]),
 	[ENABLE_DEBUG=1], [ENABLE_DEBUG=0])
 
+dnl Add -Wall to CFLAGS
+AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -Wall], [_cv_wall], [-Wall], [], [CFLAGS="$CFLAGS -Wall"], [])
+
 if test $ENABLE_DEBUG -eq 1; then
     AC_DEFINE([PARANOIA_LEVEL], [10], [Enable use of memory checks])
     CFLAGS="$CFLAGS -g"
diff --git a/liblwgeom/lwgeom_geos_clean.c b/liblwgeom/lwgeom_geos_clean.c
index fdbe3e8..91430d0 100644
--- a/liblwgeom/lwgeom_geos_clean.c
+++ b/liblwgeom/lwgeom_geos_clean.c
@@ -957,7 +957,8 @@ lwgeom_make_valid_params(LWGEOM* lwgeom_in, char* make_valid_params)
 		const char *value;
 		char *param_list[OPTION_LIST_SIZE];
 		char param_list_text[OPTION_LIST_SIZE];
-		strncpy(param_list_text, make_valid_params, OPTION_LIST_SIZE);
+		strncpy(param_list_text, make_valid_params, OPTION_LIST_SIZE-1);
+		param_list_text[OPTION_LIST_SIZE-1] = '\0'; /* ensure null-termination */
 		memset(param_list, 0, sizeof(param_list));
 		option_list_parse(param_list_text, param_list);
 		GEOSMakeValidParams *params = GEOSMakeValidParams_create();

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

Summary of changes:
 configure.ac                  | 3 +++
 liblwgeom/lwgeom_geos_clean.c | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list