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

Avoid a potential null-pointer dereference following an OOM.

FossilOrigin-Name: 25f6ed8de4df9c9890d4a352a6d11084433e82ea
This commit is contained in:
drh
2016-08-24 00:25:27 +00:00
parent e835bc1285
commit 894241c847
3 changed files with 8 additions and 7 deletions

View File

@@ -2103,6 +2103,7 @@ int sqlite3FindInIndex(
int mustBeUnique; /* True if RHS must be unique */
Vdbe *v = sqlite3GetVdbe(pParse); /* Virtual machine being coded */
if( pParse->db->mallocFailed ) return IN_INDEX_NOOP;
assert( pX->op==TK_IN );
mustBeUnique = (inFlags & IN_INDEX_LOOP)!=0;