diff options
author | drh <> | 2021-04-16 01:03:16 +0000 |
---|---|---|
committer | drh <> | 2021-04-16 01:03:16 +0000 |
commit | 34c11e2f4b5a476405156856320174e464b86318 (patch) | |
tree | 941be6b13fab210a8f9620570c983f72b513e264 /src/wherecode.c | |
parent | 9988db83024e9e539ccd866c74694e5708a00e29 (diff) | |
download | sqlite-34c11e2f4b5a476405156856320174e464b86318.tar.gz sqlite-34c11e2f4b5a476405156856320174e464b86318.zip |
Do not invoke sqlite3ExprAffinity() if there is a possibility that the Expr
is incomplete due to a prior OOM.
dbsqlfuzz b8a824706914488bd236da51118eb9174ceb870f
FossilOrigin-Name: e8a1515b44380cc52aca1838814ca398012e4e9cf5728d40b404546e812a39b7
Diffstat (limited to 'src/wherecode.c')
-rw-r--r-- | src/wherecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c index 86113caeb..9c4360732 100644 --- a/src/wherecode.c +++ b/src/wherecode.c @@ -751,7 +751,7 @@ static int codeAllEqualityTerms( sqlite3VdbeAddOp2(v, OP_IsNull, regBase+j, pLevel->addrBrk); VdbeCoverage(v); } - if( zAff ){ + if( pParse->db->mallocFailed==0 ){ if( sqlite3CompareAffinity(pRight, zAff[j])==SQLITE_AFF_BLOB ){ zAff[j] = SQLITE_AFF_BLOB; } |