1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

In a TK_BLOB Expr node, the Expr.zToken might not be a well-formed

BLOB literal if there has been a prior OOM.
dbsqlfuzz 23871e5805d6c45b392f9b7aa1e8a2b98f3c27cd.

FossilOrigin-Name: c538d075350927222ab0a6598b844f7b15153c5dc008d71b921a2b73c4f4a7a4
This commit is contained in:
drh
2022-07-22 18:25:04 +00:00
parent d00505dc97
commit 034d111807
3 changed files with 8 additions and 7 deletions

View File

@@ -4212,6 +4212,7 @@ expr_code_doover:
int n;
const char *z;
char *zBlob;
if( pParse->nErr ) return target;
assert( !ExprHasProperty(pExpr, EP_IntValue) );
assert( pExpr->u.zToken[0]=='x' || pExpr->u.zToken[0]=='X' );
assert( pExpr->u.zToken[1]=='\'' );