aboutsummaryrefslogtreecommitdiff
path: root/src/utf.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2004-06-22 22:04:46 +0000
committerdrh <drh@noemail.net>2004-06-22 22:04:46 +0000
commit1b743be858159ab936058c8cc093e8e374e3b134 (patch)
tree5082e92efd0f5b55ecd1a89fdbaeaebdc2da7e45 /src/utf.c
parent7cf8c55add6b6ffe2575e72ef4813a21acfaf155 (diff)
downloadsqlite-1b743be858159ab936058c8cc093e8e374e3b134.tar.gz
sqlite-1b743be858159ab936058c8cc093e8e374e3b134.zip
Be careful to initialize the Mem.xDel field to zero for static Mems. (CVS 1671)
FossilOrigin-Name: e17ea666b1eb1df12a1d4d78bda2e025e2aa30bd
Diffstat (limited to 'src/utf.c')
-rw-r--r--src/utf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utf.c b/src/utf.c
index 3c1042502..16454c2ff 100644
--- a/src/utf.c
+++ b/src/utf.c
@@ -12,7 +12,7 @@
** This file contains routines used to translate between UTF-8,
** UTF-16, UTF-16BE, and UTF-16LE.
**
-** $Id: utf.c,v 1.22 2004/06/18 17:10:17 drh Exp $
+** $Id: utf.c,v 1.23 2004/06/22 22:04:46 drh Exp $
**
** Notes on UTF-8:
**
@@ -321,6 +321,7 @@ int sqlite3VdbeMemTranslate(Mem *pMem, u8 desiredEnc){
WRITE_UTF8(z, 0);
pMem->n = (z-zOut)-1;
}
+ assert( pMem->n+1<=len );
}
sqlite3VdbeMemRelease(pMem);