]> git.ipfire.org Git - thirdparty/sqlite.git/commit
In extensions rtree, fts3 and fts5, ensure that when dynamic buffers are bound
authordan <dan@noemail.net>
Wed, 7 Feb 2018 18:02:50 +0000 (18:02 +0000)
committerdan <dan@noemail.net>
Wed, 7 Feb 2018 18:02:50 +0000 (18:02 +0000)
commiteab0e103042143fe5712ea067c86f7b8acd545df
tree57c929898cc63b12f353a1ade952fd92a93f07a8
parentfa68815fa326af4b9bcdc61df39185170985f078
In extensions rtree, fts3 and fts5, ensure that when dynamic buffers are bound
to persistent SQL statements using SQLITE_STATIC, the binding is replaced with
an SQL NULL before the buffer is freed. Otherwise, a user may obtain a pointer
to the persistent statement using sqlite3_next_stmt() and attempt to access
the freed buffer using sqlite3_expanded_sql() or similar.

FossilOrigin-Name: 2a5f813bc61f9e780f2ccbda425611f65ad523b6d486a1e5e2b9d5e9f1d260a2
14 files changed:
ext/fts3/fts3_write.c
ext/fts5/fts5_index.c
ext/fts5/fts5_storage.c
ext/fts5/test/fts5aa.test
ext/rtree/rtree.c
ext/rtree/rtree1.test
ext/rtree/rtree4.test
ext/rtree/rtree5.test
ext/rtree/rtree6.test
ext/rtree/rtreeG.test
manifest
manifest.uuid
test/fts3aa.test
test/tester.tcl