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

Fix an off-by-one assert() in the virtual table argument tokenizer.

FossilOrigin-Name: c83052e48bbae0f45db2a44155b4e5482ee4a901
This commit is contained in:
drh
2015-04-19 23:11:10 +00:00
parent 992590be1c
commit 542a176d5e
3 changed files with 8 additions and 8 deletions

View File

@@ -472,7 +472,7 @@ void sqlite3VtabArgExtend(Parse *pParse, Token *p){
pArg->z = p->z;
pArg->n = p->n;
}else{
assert(pArg->z < p->z);
assert(pArg->z <= p->z);
pArg->n = (int)(&p->z[p->n] - pArg->z);
}
}