]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Make sure the OP_Concat opcode always correctly zero-terminates a UTF16
authordrh <drh@noemail.net>
Thu, 16 May 2019 01:22:21 +0000 (01:22 +0000)
committerdrh <drh@noemail.net>
Thu, 16 May 2019 01:22:21 +0000 (01:22 +0000)
commitdf82afc04efbf269f3d4663cec04147421310f56
tree06cd9b828bfd738c3ff3c10733dfa6e0f8f881a7
parent73c53b39c9656c5bf8cd6a1758b055d806dd7dcc
Make sure the OP_Concat opcode always correctly zero-terminates a UTF16
string, even if the input strings are ill-formed.  This is a followup to
check-in [3a16ddf91f0c9c516a7] that fixes a case the previous check-in missed.
Also add assert()s to prove correct zero termination.

FossilOrigin-Name: d612fb7873cf59dfda18cabe45f674c37aa78a4587de3378b1840c99465a0269
manifest
manifest.uuid
src/vdbe.c
src/vdbemem.c