From: drh <> Date: Mon, 1 Aug 2022 13:14:03 +0000 (+0000) Subject: In the xUpdate method of the GeoPoly virtual table, make sure that the X-Git-Tag: version-3.40.0~265 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f98109e7cb51e0950ed8fe863f970ea6f9e729bd;p=thirdparty%2Fsqlite.git In the xUpdate method of the GeoPoly virtual table, make sure that the number of updated columns does not exceed the underlying implementation, even if the virtual table object records an excess number of column in the nAux field due to table constraints in the table definition. Fix for the problem reported by [forum:/forumpost/a096ab7d96bb057a|forum post a096ab7d96bb057a]. FossilOrigin-Name: a04dd475c2c8afdded0afecfd34c6c4c2f48cce520e09b7fa5172ff30f09209e --- diff --git a/ext/rtree/geopoly.c b/ext/rtree/geopoly.c index 68cde87344..7b41e79092 100644 --- a/ext/rtree/geopoly.c +++ b/ext/rtree/geopoly.c @@ -1695,7 +1695,7 @@ static int geopolyUpdate( sqlite3_free(p); nChange = 1; } - for(jj=1; jjnAux; jj++){ + for(jj=1; jj