mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Add assert() statements to validate access to the SrcItem.u1.nRow union member.
FossilOrigin-Name: 21f616d9b948efca441f8d45d0a95f4c052ce8b6daec7fa582ad9a00b82ca570
This commit is contained in:
@@ -698,7 +698,6 @@ Select *sqlite3MultiValues(Parse *pParse, Select *pLeft, ExprList *pRow){
|
||||
}else{
|
||||
SrcItem *p = 0; /* SrcItem that reads from co-routine */
|
||||
|
||||
|
||||
if( pLeft->pSrc->nSrc==0 ){
|
||||
/* Co-routine has not yet been started and the special Select object
|
||||
** that accesses the co-routine has not yet been created. This block
|
||||
@@ -742,6 +741,7 @@ Select *sqlite3MultiValues(Parse *pParse, Select *pLeft, ExprList *pRow){
|
||||
}
|
||||
}else{
|
||||
p = &pLeft->pSrc->a[0];
|
||||
assert( !p->fg.isTabFunc && !p->fg.isIndexedBy );
|
||||
p->u1.nRow++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user