]> git.ipfire.org Git - thirdparty/sqlite.git/commit
If sqlite3_column_value() is called to obtain a value with the MEM_Static flag set...
authordanielk1977 <danielk1977@noemail.net>
Mon, 13 Oct 2008 10:37:49 +0000 (10:37 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Mon, 13 Oct 2008 10:37:49 +0000 (10:37 +0000)
commitd0ffa1e815704dbb2a5f2ce68fb07b27b9e00b25
tree00886d013676f2078098781a4e3eba2270f03659
parenta3465f2d78611a2ccf2eccccf03d56c6ead6f04b
If sqlite3_column_value() is called to obtain a value with the MEM_Static flag set, clear it and set the MEM_Ephem flag before returning. Otherwise, if the value is passed to sqlite3_bind_value() or sqlite3_result_value(), sqlite may attempt to use the buffer after the statement has been finalized. This is not always valid, as MEM_Static only guarantees that a MEM.z buffer will be valid for the lifetime of the owner statement, not that it is actually a static buffer. (CVS 5812)

FossilOrigin-Name: b055bfc4e5268d8a66d6a4f5e8aec1285fe4b8e7
manifest
manifest.uuid
src/vdbeapi.c
test/eval.test
test/vtab2.test