]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add the pointer-type parameter to sqlite3_bind_pointer(),
authordrh <drh@noemail.net>
Mon, 17 Jul 2017 12:27:43 +0000 (12:27 +0000)
committerdrh <drh@noemail.net>
Mon, 17 Jul 2017 12:27:43 +0000 (12:27 +0000)
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

1  2 
manifest
manifest.uuid

diff --cc manifest
index e859ce2f5a012cde16abbe5ebc4d224b9ef4f036,277a5f60de4a5e91a6c61882ffe4e30300760d8c..25554f8098c12cd24d1473bcf3e08b3385d745b1
+++ 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 c774bc0dfdcb5a9068e49667dfdf1b26fe90cb87,3e6885e2821fe0dd4263bdeb5bc07a913e985f71..e7ee9715e2276f530ce73f0353c5d5921a63e817
@@@ -1,1 -1,1 +1,1 @@@
- b64d64c84484162d1822430036ba0483365a39ef4cf82cd6a7b9436d9e9f50c8
 -c13264d5ef0470fb24e09f7bc12f19be3b77eab06d41f55607b38dddb532a132
++e1196567fcbc313657836262ed9f71668b1c47f26e4bc57c7880ff40079d66cc