Add assert() statements to validate access to the SrcItem.u1.nRow union member.
FossilOrigin-Name: 21f616d9b948efca441f8d45d0a95f4c052ce8b6daec7fa582ad9a00b82ca570
This commit is contained in:
+6
-4
@@ -3270,10 +3270,12 @@ struct IdList {
|
||||
**
|
||||
** Union member validity:
|
||||
**
|
||||
** u1.zIndexedBy fg.isIndexedBy && !fg.isTabFunc
|
||||
** u1.pFuncArg fg.isTabFunc && !fg.isIndexedBy
|
||||
** u2.pIBIndex fg.isIndexedBy && !fg.isCte
|
||||
** u2.pCteUse fg.isCte && !fg.isIndexedBy
|
||||
** u1.zIndexedBy fg.isIndexedBy && !fg.isTabFunc
|
||||
** u1.pFuncArg fg.isTabFunc && !fg.isIndexedBy
|
||||
** u1.nRow !fg.isTabFunc && !fg.isIndexedBy
|
||||
**
|
||||
** u2.pIBIndex fg.isIndexedBy && !fg.isCte
|
||||
** u2.pCteUse fg.isCte && !fg.isIndexedBy
|
||||
*/
|
||||
struct SrcItem {
|
||||
Schema *pSchema; /* Schema to which this item is fixed */
|
||||
|
||||
Reference in New Issue
Block a user