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

Fix a shift-overflow problem in yesterday's check-in [36fdeb4f0a66970a]

that OSSFuzz helpfully discovered overnight.  Thanks Google.

FossilOrigin-Name: bff38e2b5318ed032aaf1d350903c3494b4531f2dc59a6997144ec8e23defef4
This commit is contained in:
drh
2019-12-23 13:24:34 +00:00
parent 0af6ddd3ca
commit 7edce5ecc0
3 changed files with 8 additions and 8 deletions

View File

@@ -7734,7 +7734,7 @@ case OP_ReleaseReg: {
pMem = &aMem[pOp->p1];
constMask = pOp->p3;
for(i=0; i<pOp->p2; i++, pMem++){
if( (constMask & MASKBIT32(i))==0 ){
if( i>=32 || (constMask & MASKBIT32(i))==0 ){
pMem->pScopyFrom = 0;
/* MemSetTypeFlag(pMem, MEM_Undefined); // See the TODO */
}