diff options
author | drh <> | 2021-07-02 12:08:12 +0000 |
---|---|---|
committer | drh <> | 2021-07-02 12:08:12 +0000 |
commit | 4d466698a2832d0908c2324ebf4e83f30d58e402 (patch) | |
tree | 0535c916f0794105f7c8184ef797cccef50e51a7 /src/resolve.c | |
parent | b9248ef5c7b5409ab39189e3d29951348f4a53ee (diff) | |
download | sqlite-4d466698a2832d0908c2324ebf4e83f30d58e402.tar.gz sqlite-4d466698a2832d0908c2324ebf4e83f30d58e402.zip |
Fix a harmless assertion fault discovered by
[https://oss-fuzz.com/testcase-detail/5517690440646656|OSSFuzz]. The
assertion fault is harmless because the assert() checks a condition that
that is harmless if false and the assert() is disabled in production
builds.
FossilOrigin-Name: 79443aabe1db8cc2ff9537fde0dac0e858eae3f3848ee9cc1b8fba47b824bf08
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c index 936a7587f..ca6224f09 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -303,7 +303,7 @@ static int lookupName( u8 hCol; pTab = pItem->pTab; assert( pTab!=0 && pTab->zName!=0 ); - assert( pTab->nCol>0 ); + assert( pTab->nCol>0 || pParse->nErr ); if( pItem->pSelect && (pItem->pSelect->selFlags & SF_NestedFrom)!=0 ){ int hit = 0; pEList = pItem->pSelect->pEList; |