mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
In the OP_Column opcode, only test the btree payload size for exceeding the
string length limit if the payload does not fit on a single page. FossilOrigin-Name: 35c7f6cba6febf2480de01fca9d61b8065bf1c12
This commit is contained in:
@@ -2427,12 +2427,11 @@ case OP_Column: {
|
||||
assert( avail<=65536 ); /* Maximum page size is 64KiB */
|
||||
if( pC->payloadSize <= (u32)avail ){
|
||||
pC->szRow = pC->payloadSize;
|
||||
}else if( pC->payloadSize > (u32)db->aLimit[SQLITE_LIMIT_LENGTH] ){
|
||||
goto too_big;
|
||||
}else{
|
||||
pC->szRow = avail;
|
||||
}
|
||||
if( pC->payloadSize > (u32)db->aLimit[SQLITE_LIMIT_LENGTH] ){
|
||||
goto too_big;
|
||||
}
|
||||
}
|
||||
pC->cacheStatus = p->cacheCtr;
|
||||
pC->iHdrOffset = getVarint32(pC->aRow, offset);
|
||||
|
Reference in New Issue
Block a user