Lines Matching refs:mallocFailed
17659 u8 mallocFailed; /* True if we have seen a malloc failure */ member
30889 }else if( db->mallocFailed ){ in sqlite3DbMallocRawNN()
30922 if( db->mallocFailed ){ in sqlite3DbMallocRawNN()
30956 if( db->mallocFailed==0 ){ in dbReallocFinish()
31065 if( db->mallocFailed==0 && db->bBenignMalloc==0 ){ in sqlite3OomFault()
31066 db->mallocFailed = 1; in sqlite3OomFault()
31092 if( db->mallocFailed && db->nVdbeExec==0 ){ in sqlite3OomClear()
31093 db->mallocFailed = 0; in sqlite3OomClear()
31104 if( db->mallocFailed || rc==SQLITE_IOERR_NOMEM ){ in apiHandleError()
31131 if( db->mallocFailed || rc ){ in sqlite3ApiExit()
34846 if( db->mallocFailed ){ in sqlite3Utf16to8()
34850 assert( (m.flags & MEM_Term)!=0 || db->mallocFailed ); in sqlite3Utf16to8()
34851 assert( (m.flags & MEM_Str)!=0 || db->mallocFailed ); in sqlite3Utf16to8()
34852 assert( m.z || db->mallocFailed ); in sqlite3Utf16to8()
35164 if( db->mallocFailed ){ in sqlite3ErrorMsg()
35242 assert( p!=0 || pParse->db->mallocFailed ); in sqlite3DequoteNumber()
67194 rc = db->mallocFailed ? SQLITE_NOMEM_BKPT : SQLITE_INTERRUPT;
76645 && (pIdxKey->errCode!=SQLITE_NOMEM || pCur->pBtree->db->mallocFailed)
82942 if( p->db && p->db->mallocFailed ) return 1;
83602 assert( pMem->flags & MEM_Str || pMem->db->mallocFailed );
83627 assert( pMem->flags & MEM_Str || pMem->db->mallocFailed );
84129 || pVal->db->mallocFailed );
85079 if( p->db->mallocFailed==0 ){
85292 assert( pParse->db->mallocFailed );
85657 return ( v->db->mallocFailed || hasAbort==mayAbort || hasFkCounter
85716 assert( pParse->db->mallocFailed==0 ); /* tag-20230419-1 */
85959 assert( aOp && !p->db->mallocFailed );
86125 assert( addr>=0 || p->db->mallocFailed );
86133 assert( p->nOp>0 || p->db->mallocFailed );
86300 if( p->db->mallocFailed ) return 0;
86398 assert( p->aOp!=0 || db->mallocFailed );
86399 if( db->mallocFailed ){
86439 if( p->db->mallocFailed ){
86526 assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed );
86527 if( p->db->mallocFailed ){
86935 dummyDb.mallocFailed = 1;
87298 if( db->mallocFailed ){
87481 assert( db->mallocFailed==0 );
87533 if( !db->mallocFailed ){
87541 if( db->mallocFailed ){
87712 if( p->db->mallocFailed ){
88139 if( db->mallocFailed ){
88306 if( db->mallocFailed ){
88757 assert( pMem->db->mallocFailed || flags&(MEM_Str|MEM_Blob) );
89211 if( pKeyInfo->db->mallocFailed ) return 1;
89456 assert( pMem1->enc==pMem2->enc || pMem1->db->mallocFailed );
89756 || pPKey2->pKeyInfo->db->mallocFailed
89933 || pPKey2->pKeyInfo->db->mallocFailed
91228 assert( db->mallocFailed==0 );
91298 if( !db->mallocFailed ){
91880 u8 prior_mallocFailed = db->mallocFailed;
91893 assert( db->mallocFailed==0 || db->mallocFailed==1 );
91894 if( db->mallocFailed > prior_mallocFailed ){
93602 || pMem->db==0 || pMem->db->mallocFailed );
94827 if( db->mallocFailed ) goto no_mem;
96673 assert( db->mallocFailed || pRec->flags&(MEM_Str|MEM_Blob) );
100120 || db->mallocFailed
100149 assert( !db->mallocFailed );
101244 assert( zTab || db->mallocFailed );
101305 assert( db->mallocFailed );
101634 if( db->mallocFailed ) goto no_mem;
101806 || db->mallocFailed );
102185 if( db->mallocFailed ){
102529 assert( pBlob->pStmt || db->mallocFailed );
102565 assert( sqlite3VdbeCurrentAddr(v)==2 || db->mallocFailed );
102571 if( db->mallocFailed==0 ){
102582 if( db->mallocFailed==0 ){
102612 if( db->mallocFailed ){
102621 if( rc==SQLITE_OK && db->mallocFailed==0 ){
106810 if( db->mallocFailed ){
108028 if( pParse->db->mallocFailed ) break;
108133 if( pParse->db->mallocFailed ) break;
108162 assert( pParse->db->mallocFailed==0 || pParse->nErr!=0 );
108351 if( !db->mallocFailed ){
108419 if( pOrderBy==0 || pParse->db->mallocFailed || IN_RENAME_OBJECT ) return 0;
108628 assert( db->mallocFailed==0 );
108748 if( db->mallocFailed ){
108759 if( resolveOrderGroupBy(&sNC, p, pGroupBy, "GROUP") || db->mallocFailed ){
109295 if( ExprUseXList(p) && p->x.pList!=0 && !db->mallocFailed ){
110008 assert( db->mallocFailed );
110073 assert( pParse->db->mallocFailed );
110226 assert( db->mallocFailed );
110230 assert( db->mallocFailed );
110385 assert( !ExprUseYWin(p) || p->y.pWin!=0 || db->mallocFailed );
110973 if( p->pWin && db->mallocFailed==0 ) gatherSelectWindows(pNew);
110976 if( db->mallocFailed ){
111109 assert( pSubExpr!=0 || db->mallocFailed );
111119 if( !db->mallocFailed && pExpr->op==TK_SELECT && ALWAYS(pList!=0) ){
111187 assert( pList!=0 || pParse->db->mallocFailed!=0 );
111223 assert( pList!=0 || db->mallocFailed!=0 );
112530 rc = pParse->db->mallocFailed ? 1 :sqlite3Select(pParse, pCopy, &dest);
112761 if( ExprUseXSelect(pIn) && !pParse->db->mallocFailed ){
112833 if( pParse->db->mallocFailed ) goto sqlite3ExprCodeIN_oom_error;
113722 assert( op==TK_NULL || op==TK_ERROR || pParse->db->mallocFailed );
114035 if( pParse->db->mallocFailed ){
114261 if( db->mallocFailed ){
114382 if( !pParse->db->mallocFailed ){
114448 assert( pParse->pVdbe!=0 || pParse->db->mallocFailed );
114474 if( !db->mallocFailed ) sqlite3ExprCode(pParse, pExpr, target);
114607 if( db->mallocFailed==0 ){
114978 if( db->mallocFailed==0 ){
115786 assert( pParse->db->mallocFailed );
116281 if( NEVER(db->mallocFailed) ) goto exit_rename_table;
116471 assert( db->mallocFailed==0 );
116534 assert( db->mallocFailed == 1 );
116636 if( db->mallocFailed ) goto exit_begin_add_column;
116679 assert( db->mallocFailed );
116888 assert( pParse->db->mallocFailed==0 || pParse->nErr!=0 );
116923 assert( pPtr || pParse->db->mallocFailed );
116992 if( sNC.pParse->db->mallocFailed ) return;
117296 if( db->mallocFailed ) rc = SQLITE_NOMEM;
117517 if( db->mallocFailed ){
117692 rc = (db->mallocFailed ? SQLITE_NOMEM : sParse.rc);
117823 assert( pWalker->pParse->db->mallocFailed );
118083 rc = (db->mallocFailed ? SQLITE_NOMEM : sParse.rc);
118307 if( NEVER(db->mallocFailed) ) goto exit_drop_column;
118319 assert( db->mallocFailed );
120870 assert( v || db->mallocFailed );
121517 if( db->mallocFailed ) pParse->rc = SQLITE_NOMEM;
121520 assert( db->mallocFailed==0 );
121641 assert( db->mallocFailed==0 || pParse->nErr );
121683 if( !db->mallocFailed ) pParse->rc = SQLITE_TOOBIG;
122191 if( !db->mallocFailed && (pTable->tabFlags & TF_Ephemeral)==0 ){
122675 assert( db->mallocFailed );
122828 if( db->mallocFailed ) return;
123767 assert( db->mallocFailed==0 );
124400 if( db->mallocFailed ) goto create_view_fail;
124531 assert( db->mallocFailed==0 );
124555 if( db->mallocFailed ){
124852 if( db->mallocFailed ){
125322 assert( db->mallocFailed==0 );
125367 assert( db->mallocFailed==0 || pTab==0 );
125519 if( db->mallocFailed ){
125951 if( db->mallocFailed ){
126169 assert( db->mallocFailed );
126277 assert( pList || pParse->db->mallocFailed );
126972 assert( pNew!=0 || db->mallocFailed );
126974 if( db->mallocFailed ){
127043 assert( (pNew!=0 && zName!=0) || db->mallocFailed );
127045 if( db->mallocFailed ){
127952 assert( db->mallocFailed==0 );
130055 || sqlite3_context_db_handle(context)->mallocFailed );
132349 if( !isIgnoreErrors || db->mallocFailed ) return;
132444 if( !isIgnoreErrors || db->mallocFailed ) return;
132787 if( db->mallocFailed==1 ){
133084 assert( pPrev->opcode==OP_MakeRecord || sqlite3VdbeDb(v)->mallocFailed );
133110 || sqlite3VdbeDb(v)->mallocFailed );
133332 if( pParse->db->mallocFailed ) return 0;
133821 assert( db->mallocFailed==0 );
134027 assert( db->mallocFailed==0 );
134898 testcase( zMsg==0 && db->mallocFailed==0 );
134959 if( !db->mallocFailed ){
134967 assert( zName!=0 || pParse->db->mallocFailed );
135476 assert( nConflictCk>0 || db->mallocFailed );
140016 if( db->mallocFailed ){
140316 assert( x==0 || db->mallocFailed );
140342 assert( pFK->nCol==1 || db->mallocFailed );
140746 if( db->mallocFailed==0 ){
141323 if( !db->mallocFailed && nLimit>0 && nBtree>100 ){
141831 if( db->mallocFailed ){
141909 if( db->mallocFailed ){
142197 if( db->mallocFailed ){
142477 if( db->mallocFailed ) sqlite3ErrorMsg(pParse, "out of memory");
142517 if( db->mallocFailed ){
142606 if( db->mallocFailed ){
142672 if( rc==SQLITE_OK || db->mallocFailed ) break;
143032 assert( pParse->db->mallocFailed );
143062 if( pParse->db->mallocFailed ) {
143665 if( pParse->db->mallocFailed ) return;
143824 assert( sqlite3VdbeCurrentAddr(v)==iJump || pParse->db->mallocFailed );
144089 if( pExtra && pParse->db->mallocFailed==0 ){
145221 if( db->mallocFailed || IN_RENAME_OBJECT ) return;
145318 if( db->mallocFailed ){
145951 assert( p->pEList || db->mallocFailed );
145952 if( dest.eDest!=priorOp && db->mallocFailed==0 ){
146176 if( pParse->db->mallocFailed ) return 0;
146419 for(i=1; db->mallocFailed==0 && i<=p->pEList->nExpr; i++){
146467 assert( nOrderBy>=nExpr || db->mallocFailed );
146503 assert( pOrderBy!=0 || db->mallocFailed );
146781 if( db->mallocFailed ){
147450 if( aCsrMap && ALWAYS(db->mallocFailed==0) ){
147463 if( db->mallocFailed ){
147593 if( db->mallocFailed==0 ){
147779 if( pConst->pParse->db->mallocFailed ) return WRC_Prune;
147880 x.pOomFault = &pParse->db->mallocFailed;
148325 assert( pOrderBy!=0 || db->mallocFailed );
148656 if( db->mallocFailed ) return 2;
148871 if( db->mallocFailed ){
148983 assert( db->mallocFailed==0 || pParse->nErr!=0 );
149065 if( db->mallocFailed ) break;
149358 assert( p!=0 || pParse->db->mallocFailed );
149360 if( pParse->db->mallocFailed ) return;
149564 assert( pParse->db->mallocFailed==0 || pParse->nErr!=0 );
150219 assert( db->mallocFailed==0 );
150260 assert( db->mallocFailed==0 );
150479 if( db->mallocFailed ) goto select_end;
150526 if( db->mallocFailed ) goto select_end;
150703 if( db->mallocFailed ) goto select_end;
150974 if( db->mallocFailed ){
151007 if( db->mallocFailed ) goto select_end;
151474 assert( db->mallocFailed==0 || db->mallocFailed==1 );
151475 assert( db->mallocFailed==0 || pParse->nErr!=0 );
151478 if( pAggInfo && !db->mallocFailed ){
151854 if( !pTableName || db->mallocFailed ){
151883 if( db->mallocFailed ) goto trigger_cleanup;
151907 assert( db->mallocFailed );
152216 assert(pSelect != 0 || db->mallocFailed);
152340 if( db->mallocFailed ) goto drop_trigger_cleanup;
152647 if( !db->mallocFailed ){
152656 if( !db->mallocFailed && ALWAYS(pList->a[i].zEName!=0) ){
152772 assert( db->mallocFailed==0 );
152790 && ALWAYS(!db->mallocFailed)
153011 if( db->mallocFailed==0
153032 assert( db->mallocFailed==0 );
153530 assert( pChanges!=0 || pParse->db->mallocFailed );
153631 assert( db->mallocFailed==0 );
155243 || NEVER(db->mallocFailed)
156255 assert( !db->mallocFailed );
157732 assert( sqlite3VdbeDb(v)->mallocFailed || pOp->opcode==OP_InitCoroutine );
157733 assert( sqlite3VdbeDb(v)->mallocFailed || pOp->p2>addr );
157824 assert( pParse->db->mallocFailed );
157914 if( db->mallocFailed==0 ){
158059 if( !db->mallocFailed ){
158236 assert( zAff!=0 || pParse->db->mallocFailed );
158294 assert( pParse->db->mallocFailed==0 );
158337 || pTerm->pWC->pWInfo->pParse->db->mallocFailed );
158919 if( db->mallocFailed ) pLoop->u.vtab.idxStr = 0;
158933 && !db->mallocFailed
158960 if( !db->mallocFailed ){
159420 assert( pParse->db->mallocFailed );
159724 if( db->mallocFailed ){
160912 if( db->mallocFailed ) return;
160941 if( !db->mallocFailed ){
161320 if( db->mallocFailed ){
161421 if( db->mallocFailed ){
161588 if( noCase && !pParse->db->mallocFailed ){
161598 if( !db->mallocFailed ){
162838 if( pParse->db->mallocFailed ) return;
163134 assert( nKeyCol>0 || pParse->db->mallocFailed );
163266 testcase( pParse->db->mallocFailed );
163817 if( pParse->db->mallocFailed==0 ){
163824 || pParse->db->mallocFailed
163834 || pParse->db->mallocFailed );
163843 || pParse->db->mallocFailed || CORRUPT_DB );
163848 || pParse->db->mallocFailed || CORRUPT_DB );
165129 assert( db->mallocFailed==0 || pParse->nErr>0 );
166865 if( rc || db->mallocFailed ){
168418 if( db->mallocFailed ){
168625 if( db->mallocFailed ) goto whereBeginError;
168629 if( db->mallocFailed ) goto whereBeginError;
168649 assert( db->mallocFailed==0 );
168927 if( db->mallocFailed ) goto whereBeginError;
168959 if( db->mallocFailed ) goto whereBeginError;
169094 || pParse->db->mallocFailed );
169214 testcase( pParse->db->mallocFailed );
169238 && !db->mallocFailed
170139 if( pParse->db->mallocFailed ) return WRC_Abort;
170168 if( pParse->db->mallocFailed ) return WRC_Abort;
170251 if( db->mallocFailed ){
170454 if( db->mallocFailed ) rc = SQLITE_NOMEM;
179088 VVA_ONLY( u8 startedWithOom = db->mallocFailed );
179185 assert( db->mallocFailed==0 || pParse->rc!=SQLITE_OK || startedWithOom );
179201 if( db->mallocFailed ){
181743 assert( !db->mallocFailed );
181755 assert(p || db->mallocFailed);
181899 assert( !db->mallocFailed );
182432 if( db->mallocFailed ){
182437 assert( !db->mallocFailed );
182482 if( db->mallocFailed ){
182510 if( !db || db->mallocFailed ){
182519 if( !db || db->mallocFailed ){
183200 if( db->mallocFailed ){
183266 if( !db->mallocFailed ){
183281 if( db->mallocFailed ){
183451 assert( !db->mallocFailed );
183476 assert( !db->mallocFailed );
185057 assert( !db->mallocFailed );
208324 if( db->mallocFailed ) goto json_pfa_oom;
224815 assert( pData!=0 || pTab->db->mallocFailed );