From: drh Date: Mon, 17 Jul 2017 12:27:43 +0000 (+0000) Subject: Add the pointer-type parameter to sqlite3_bind_pointer(), X-Git-Tag: version-3.20.0~36^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03577132257c41e86f50359090c05f755d5ab2d0;p=thirdparty%2Fsqlite.git Add the pointer-type parameter to sqlite3_bind_pointer(), sqlite3_result_pointer(), and sqlite3_value_pointer(). The pointer type is a static string that must match (according to strcmp()) or else the pointer is passed as a NULL. This is a security measure to prevent crossing pointers between different extensions. FossilOrigin-Name: e1196567fcbc313657836262ed9f71668b1c47f26e4bc57c7880ff40079d66cc --- 03577132257c41e86f50359090c05f755d5ab2d0 diff --cc manifest index e859ce2f5a,277a5f60de..25554f8098 --- a/manifest +++ b/manifest @@@ -1,5 -1,5 +1,5 @@@ - C Merge\sthe\sfix\sfor\sticket\s[a4e06e75a9ab61a12]\sfrom\strunk. - D 2017-07-15T20:44:33.555 -C Improve\sthe\ssqlite3_result_pointer()\sinterface\sso\sthat\sit\scannot\sbe\sfaked\nusing\ssqlite3_result_null()\sand\ssqlite3_result_subtype(). -D 2017-07-17T11:39:46.366 ++C Add\sthe\spointer-type\sparameter\sto\ssqlite3_bind_pointer(),\nsqlite3_result_pointer(),\sand\ssqlite3_value_pointer().\s\sThe\spointer\stype\sis\na\sstatic\sstring\sthat\smust\smatch\s(according\sto\sstrcmp())\sor\selse\sthe\spointer\nis\spassed\sas\sa\sNULL.\s\sThis\sis\sa\ssecurity\smeasure\sto\sprevent\scrossing\spointers\nbetween\sdifferent\sextensions. ++D 2017-07-17T12:27:43.686 F Makefile.in eda8bedf08c4c93e2137ef1218b3d3302488c68c2774918de0335a1133aab157 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc 20850e3e8d4d4791e0531955852d768eb06f24138214870d543abb1a47346fba @@@ -1633,7 -1633,7 +1633,8 @@@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a9 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 - P 47cf83a0682b7b3219cf255457f5fbe05f3c1f46be42f6bbab33b78a57a252f6 253945d480b052bfe311888022b5eb0be91c8c80cda05036e58207d57520262c - R fc177602ad383f813078bc7976231f1f -P 211cce04e97d2e325a6ea3e99738fc71115d673dc13daeffb03ac3140deb11de ++P b64d64c84484162d1822430036ba0483365a39ef4cf82cd6a7b9436d9e9f50c8 c13264d5ef0470fb24e09f7bc12f19be3b77eab06d41f55607b38dddb532a132 + R b5069fb289c149b1ae5393ff07d0ac4e ++T +closed c13264d5ef0470fb24e09f7bc12f19be3b77eab06d41f55607b38dddb532a132 U drh - Z 72e0051f8920101ae819b65d7e9be4d4 -Z 009027d79ad8aabb66e97a4b8be0060e ++Z 925d3dfda59d7030b45ae8209211f32c diff --cc manifest.uuid index c774bc0dfd,3e6885e282..e7ee9715e2 --- a/manifest.uuid +++ b/manifest.uuid @@@ -1,1 -1,1 +1,1 @@@ - b64d64c84484162d1822430036ba0483365a39ef4cf82cd6a7b9436d9e9f50c8 -c13264d5ef0470fb24e09f7bc12f19be3b77eab06d41f55607b38dddb532a132 ++e1196567fcbc313657836262ed9f71668b1c47f26e4bc57c7880ff40079d66cc