1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-21 09:00:59 +03:00

Make sure a memory allocation error did not prevent UTF16 to UTF8 conversion

prior to doing a string comparison. (CVS 5988)

FossilOrigin-Name: 9d061e20d885bee7ac7875500a0e7c238b540a63
This commit is contained in:
drh
2008-12-06 16:46:13 +00:00
parent 2aca5846da
commit bbce338412
3 changed files with 9 additions and 8 deletions

View File

@@ -43,7 +43,7 @@
** in this file for details. If in doubt, do not deviate from existing
** commenting and indentation practices when changing or adding code.
**
** $Id: vdbe.c,v 1.791 2008/12/04 22:17:56 drh Exp $
** $Id: vdbe.c,v 1.792 2008/12/06 16:46:14 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1687,6 +1687,7 @@ case OP_Ge: { /* same as TK_GE, jump, in1, in3 */
if( affinity ){
applyAffinity(pIn1, affinity, encoding);
applyAffinity(pIn3, affinity, encoding);
if( db->mallocFailed ) goto no_mem;
}
assert( pOp->p4type==P4_COLLSEQ || pOp->p4.pColl==0 );