diff options
author | drh <> | 2024-03-18 13:31:24 +0000 |
---|---|---|
committer | drh <> | 2024-03-18 13:31:24 +0000 |
commit | ac7c6f58540e07a1db2cda5ed58b5fe06fc23dd2 (patch) | |
tree | a34af40fc4a8bbadf407c968369e1210a3131235 /src/sqliteInt.h | |
parent | 871786b7927bc101e25e38d1c446cecd55939ed4 (diff) | |
download | sqlite-ac7c6f58540e07a1db2cda5ed58b5fe06fc23dd2.tar.gz sqlite-ac7c6f58540e07a1db2cda5ed58b5fe06fc23dd2.zip |
Add assert() statements to validate access to the SrcItem.u1.nRow union member.
FossilOrigin-Name: 21f616d9b948efca441f8d45d0a95f4c052ce8b6daec7fa582ad9a00b82ca570
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 01a512649..8d18bfdfb 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -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 */ |