Lines Matching refs:mallocFailed

17605   u8 mallocFailed;              /* True if we have seen a malloc failure */  member
30590 }else if( db->mallocFailed ){ in sqlite3DbMallocRawNN()
30623 if( db->mallocFailed ){ in sqlite3DbMallocRawNN()
30657 if( db->mallocFailed==0 ){ in dbReallocFinish()
30766 if( db->mallocFailed==0 && db->bBenignMalloc==0 ){ in sqlite3OomFault()
30767 db->mallocFailed = 1; in sqlite3OomFault()
30793 if( db->mallocFailed && db->nVdbeExec==0 ){ in sqlite3OomClear()
30794 db->mallocFailed = 0; in sqlite3OomClear()
30805 if( db->mallocFailed || rc==SQLITE_IOERR_NOMEM ){ in apiHandleError()
30832 if( db->mallocFailed || rc ){ in sqlite3ApiExit()
34537 if( db->mallocFailed ){ in sqlite3Utf16to8()
34541 assert( (m.flags & MEM_Term)!=0 || db->mallocFailed ); in sqlite3Utf16to8()
34542 assert( (m.flags & MEM_Str)!=0 || db->mallocFailed ); in sqlite3Utf16to8()
34543 assert( m.z || db->mallocFailed ); in sqlite3Utf16to8()
34842 if( db->mallocFailed ){ in sqlite3ErrorMsg()
66835 rc = db->mallocFailed ? SQLITE_NOMEM_BKPT : SQLITE_INTERRUPT;
76221 && (pIdxKey->errCode!=SQLITE_NOMEM || pCur->pBtree->db->mallocFailed)
82502 if( p->db && p->db->mallocFailed ) return 1;
83162 assert( pMem->flags & MEM_Str || pMem->db->mallocFailed );
83187 assert( pMem->flags & MEM_Str || pMem->db->mallocFailed );
83682 || pVal->db->mallocFailed );
84612 if( p->db->mallocFailed==0 ){
84825 assert( pParse->db->mallocFailed );
85190 return ( v->db->mallocFailed || hasAbort==mayAbort || hasFkCounter
85249 assert( pParse->db->mallocFailed==0 ); /* tag-20230419-1 */
85483 assert( aOp && !p->db->mallocFailed );
85649 assert( addr>=0 || p->db->mallocFailed );
85657 assert( p->nOp>0 || p->db->mallocFailed );
85824 if( p->db->mallocFailed ) return 0;
85922 assert( p->aOp!=0 || db->mallocFailed );
85923 if( db->mallocFailed ){
85963 if( p->db->mallocFailed ){
86050 assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed );
86051 if( p->db->mallocFailed ){
86459 dummyDb.mallocFailed = 1;
86822 if( db->mallocFailed ){
87005 assert( db->mallocFailed==0 );
87057 if( !db->mallocFailed ){
87065 if( db->mallocFailed ){
87236 if( p->db->mallocFailed ){
87663 if( db->mallocFailed ){
87830 if( db->mallocFailed ){
88281 assert( pMem->db->mallocFailed || flags&(MEM_Str|MEM_Blob) );
88718 if( pKeyInfo->db->mallocFailed ) return 1;
88965 assert( pMem1->enc==pMem2->enc || pMem1->db->mallocFailed );
89254 || pPKey2->pKeyInfo->db->mallocFailed
89431 || pPKey2->pKeyInfo->db->mallocFailed
90724 assert( db->mallocFailed==0 );
90794 if( !db->mallocFailed ){
91376 u8 prior_mallocFailed = db->mallocFailed;
91389 assert( db->mallocFailed==0 || db->mallocFailed==1 );
91390 if( db->mallocFailed > prior_mallocFailed ){
93097 || pMem->db==0 || pMem->db->mallocFailed );
94324 if( db->mallocFailed ) goto no_mem;
96166 assert( db->mallocFailed || pRec->flags&(MEM_Str|MEM_Blob) );
99584 || db->mallocFailed
99613 assert( !db->mallocFailed );
100704 assert( zTab || db->mallocFailed );
100765 assert( db->mallocFailed );
101094 if( db->mallocFailed ) goto no_mem;
101266 || db->mallocFailed );
101645 if( db->mallocFailed ){
101989 assert( pBlob->pStmt || db->mallocFailed );
102025 assert( sqlite3VdbeCurrentAddr(v)==2 || db->mallocFailed );
102031 if( db->mallocFailed==0 ){
102042 if( db->mallocFailed==0 ){
102072 if( db->mallocFailed ){
102081 if( rc==SQLITE_OK && db->mallocFailed==0 ){
106268 if( db->mallocFailed ){
107416 if( pParse->db->mallocFailed ) break;
107519 if( pParse->db->mallocFailed ) break;
107548 assert( pParse->db->mallocFailed==0 || pParse->nErr!=0 );
107737 if( !db->mallocFailed ){
107805 if( pOrderBy==0 || pParse->db->mallocFailed || IN_RENAME_OBJECT ) return 0;
108013 assert( db->mallocFailed==0 );
108131 if( db->mallocFailed ){
108142 if( resolveOrderGroupBy(&sNC, p, pGroupBy, "GROUP") || db->mallocFailed ){
108674 if( ExprUseXList(p) && p->x.pList!=0 && !db->mallocFailed ){
109386 assert( db->mallocFailed );
109451 assert( pParse->db->mallocFailed );
109604 assert( db->mallocFailed );
109608 assert( db->mallocFailed );
109762 assert( !ExprUseYWin(p) || p->y.pWin!=0 || db->mallocFailed );
110336 if( p->pWin && db->mallocFailed==0 ) gatherSelectWindows(pNew);
110339 if( db->mallocFailed ){
110472 assert( pSubExpr!=0 || db->mallocFailed );
110482 if( !db->mallocFailed && pExpr->op==TK_SELECT && ALWAYS(pList!=0) ){
110550 assert( pList!=0 || pParse->db->mallocFailed!=0 );
110586 assert( pList!=0 || db->mallocFailed!=0 );
111793 rc = pParse->db->mallocFailed ? 1 :sqlite3Select(pParse, pCopy, &dest);
112024 if( ExprUseXSelect(pIn) && !pParse->db->mallocFailed ){
112096 if( pParse->db->mallocFailed ) goto sqlite3ExprCodeIN_oom_error;
112985 assert( op==TK_NULL || op==TK_ERROR || pParse->db->mallocFailed );
113302 if( pParse->db->mallocFailed ){
113527 if( db->mallocFailed ){
113648 if( !pParse->db->mallocFailed ){
113714 assert( pParse->pVdbe!=0 || pParse->db->mallocFailed );
113740 if( !db->mallocFailed ) sqlite3ExprCode(pParse, pExpr, target);
113873 if( db->mallocFailed==0 ){
114244 if( db->mallocFailed==0 ){
115054 assert( pParse->db->mallocFailed );
115549 if( NEVER(db->mallocFailed) ) goto exit_rename_table;
115739 assert( db->mallocFailed==0 );
115802 assert( db->mallocFailed == 1 );
115904 if( db->mallocFailed ) goto exit_begin_add_column;
115947 assert( db->mallocFailed );
116156 assert( pParse->db->mallocFailed==0 || pParse->nErr!=0 );
116191 assert( pPtr || pParse->db->mallocFailed );
116260 if( sNC.pParse->db->mallocFailed ) return;
116564 if( db->mallocFailed ) rc = SQLITE_NOMEM;
116785 if( db->mallocFailed ){
116960 rc = (db->mallocFailed ? SQLITE_NOMEM : sParse.rc);
117091 assert( pWalker->pParse->db->mallocFailed );
117351 rc = (db->mallocFailed ? SQLITE_NOMEM : sParse.rc);
117575 if( NEVER(db->mallocFailed) ) goto exit_drop_column;
117587 assert( db->mallocFailed );
120120 assert( v || db->mallocFailed );
120767 if( db->mallocFailed ) pParse->rc = SQLITE_NOMEM;
120770 assert( db->mallocFailed==0 );
120891 assert( db->mallocFailed==0 || pParse->nErr );
120933 if( !db->mallocFailed ) pParse->rc = SQLITE_TOOBIG;
121441 if( !db->mallocFailed && (pTable->tabFlags & TF_Ephemeral)==0 ){
121925 assert( db->mallocFailed );
122078 if( db->mallocFailed ) return;
123017 assert( db->mallocFailed==0 );
123650 if( db->mallocFailed ) goto create_view_fail;
123780 assert( db->mallocFailed==0 );
123804 if( db->mallocFailed ){
124101 if( db->mallocFailed ){
124571 assert( db->mallocFailed==0 );
124616 assert( db->mallocFailed==0 || pTab==0 );
124768 if( db->mallocFailed ){
125200 if( db->mallocFailed ){
125418 assert( db->mallocFailed );
125526 assert( pList || pParse->db->mallocFailed );
126221 assert( pNew!=0 || db->mallocFailed );
126223 if( db->mallocFailed ){
126292 assert( (pNew!=0 && zName!=0) || db->mallocFailed );
126294 if( db->mallocFailed ){
127201 assert( db->mallocFailed==0 );
129304 || sqlite3_context_db_handle(context)->mallocFailed );
131596 if( !isIgnoreErrors || db->mallocFailed ) return;
131691 if( !isIgnoreErrors || db->mallocFailed ) return;
132034 if( db->mallocFailed==1 ){
132331 assert( pPrev->opcode==OP_MakeRecord || sqlite3VdbeDb(v)->mallocFailed );
132357 || sqlite3VdbeDb(v)->mallocFailed );
132579 if( pParse->db->mallocFailed ) return 0;
132878 assert( db->mallocFailed==0 );
133070 assert( db->mallocFailed==0 );
133940 testcase( zMsg==0 && db->mallocFailed==0 );
134001 if( !db->mallocFailed ){
134009 assert( zName!=0 || pParse->db->mallocFailed );
134518 assert( nConflictCk>0 || db->mallocFailed );
139027 if( db->mallocFailed ){
139327 assert( x==0 || db->mallocFailed );
139353 assert( pFK->nCol==1 || db->mallocFailed );
139752 if( db->mallocFailed==0 ){
140730 if( db->mallocFailed ){
140808 if( db->mallocFailed ){
141096 if( db->mallocFailed ){
141370 if( db->mallocFailed ) sqlite3ErrorMsg(pParse, "out of memory");
141410 if( db->mallocFailed ){
141499 if( db->mallocFailed ){
141565 if( rc==SQLITE_OK || db->mallocFailed ) break;
141925 assert( pParse->db->mallocFailed );
141955 if( pParse->db->mallocFailed ) {
142558 if( pParse->db->mallocFailed ) return;
142717 assert( sqlite3VdbeCurrentAddr(v)==iJump || pParse->db->mallocFailed );
142982 if( pExtra && pParse->db->mallocFailed==0 ){
144113 if( db->mallocFailed || IN_RENAME_OBJECT ) return;
144205 if( db->mallocFailed ){
144838 assert( p->pEList || db->mallocFailed );
144839 if( dest.eDest!=priorOp && db->mallocFailed==0 ){
145063 if( pParse->db->mallocFailed ) return 0;
145306 for(i=1; db->mallocFailed==0 && i<=p->pEList->nExpr; i++){
145354 assert( nOrderBy>=nExpr || db->mallocFailed );
145390 assert( pOrderBy!=0 || db->mallocFailed );
145668 if( db->mallocFailed ){
146337 if( aCsrMap && ALWAYS(db->mallocFailed==0) ){
146350 if( db->mallocFailed ){
146480 if( db->mallocFailed==0 ){
146666 if( pConst->pParse->db->mallocFailed ) return WRC_Prune;
146767 x.pOomFault = &pParse->db->mallocFailed;
147184 assert( pOrderBy!=0 || db->mallocFailed );
147515 if( db->mallocFailed ) return 2;
147728 if( db->mallocFailed ){
147840 assert( db->mallocFailed==0 || pParse->nErr!=0 );
147922 if( db->mallocFailed ) break;
148214 assert( p!=0 || pParse->db->mallocFailed );
148216 if( pParse->db->mallocFailed ) return;
148418 assert( pParse->db->mallocFailed==0 || pParse->nErr!=0 );
149073 assert( db->mallocFailed==0 );
149114 assert( db->mallocFailed==0 );
149333 if( db->mallocFailed ) goto select_end;
149380 if( db->mallocFailed ) goto select_end;
149557 if( db->mallocFailed ) goto select_end;
149828 if( db->mallocFailed ){
149861 if( db->mallocFailed ) goto select_end;
150328 assert( db->mallocFailed==0 || db->mallocFailed==1 );
150329 assert( db->mallocFailed==0 || pParse->nErr!=0 );
150332 if( pAggInfo && !db->mallocFailed ){
150702 if( !pTableName || db->mallocFailed ){
150731 if( db->mallocFailed ) goto trigger_cleanup;
150755 assert( db->mallocFailed );
151064 assert(pSelect != 0 || db->mallocFailed);
151188 if( db->mallocFailed ) goto drop_trigger_cleanup;
151495 if( !db->mallocFailed ){
151504 if( !db->mallocFailed && ALWAYS(pList->a[i].zEName!=0) ){
151553 assert( db->mallocFailed==0 );
151571 && ALWAYS(!db->mallocFailed)
151791 if( db->mallocFailed==0
151812 assert( db->mallocFailed==0 );
152310 assert( pChanges!=0 || pParse->db->mallocFailed );
152411 assert( db->mallocFailed==0 );
154007 || NEVER(db->mallocFailed)
154998 && ALWAYS(!db->mallocFailed)
156476 assert( sqlite3VdbeDb(v)->mallocFailed || pOp->opcode==OP_InitCoroutine );
156477 assert( sqlite3VdbeDb(v)->mallocFailed || pOp->p2>addr );
156568 assert( pParse->db->mallocFailed );
156658 if( db->mallocFailed==0 ){
156803 if( !db->mallocFailed ){
156980 assert( zAff!=0 || pParse->db->mallocFailed );
157038 assert( pParse->db->mallocFailed==0 );
157081 || pTerm->pWC->pWInfo->pParse->db->mallocFailed );
157642 if( db->mallocFailed ) pLoop->u.vtab.idxStr = 0;
157656 && !db->mallocFailed
157683 if( !db->mallocFailed ){
158143 assert( pParse->db->mallocFailed );
158445 if( db->mallocFailed ){
159618 if( db->mallocFailed ) return;
159647 if( !db->mallocFailed ){
160026 if( db->mallocFailed ){
160127 if( db->mallocFailed ){
160294 if( noCase && !pParse->db->mallocFailed ){
160304 if( !db->mallocFailed ){
161497 if( pParse->db->mallocFailed ) return;
161785 assert( nKeyCol>0 || pParse->db->mallocFailed );
161917 testcase( pParse->db->mallocFailed );
162468 if( pParse->db->mallocFailed==0 ){
162475 || pParse->db->mallocFailed
162485 || pParse->db->mallocFailed );
162494 || pParse->db->mallocFailed || CORRUPT_DB );
162499 || pParse->db->mallocFailed || CORRUPT_DB );
163780 assert( db->mallocFailed==0 || pParse->nErr>0 );
165477 if( rc || db->mallocFailed ){
166912 if( db->mallocFailed ){
167115 if( db->mallocFailed ) goto whereBeginError;
167118 if( db->mallocFailed ) goto whereBeginError;
167138 assert( db->mallocFailed==0 );
167416 if( db->mallocFailed ) goto whereBeginError;
167448 if( db->mallocFailed ) goto whereBeginError;
167603 || pParse->db->mallocFailed );
167715 testcase( pParse->db->mallocFailed );
167738 && !db->mallocFailed
168645 if( pParse->db->mallocFailed ) return WRC_Abort;
168674 if( pParse->db->mallocFailed ) return WRC_Abort;
168757 if( db->mallocFailed ){
168960 if( db->mallocFailed ) rc = SQLITE_NOMEM;
177487 VVA_ONLY( u8 startedWithOom = db->mallocFailed );
177581 assert( db->mallocFailed==0 || pParse->rc!=SQLITE_OK || startedWithOom );
177597 if( db->mallocFailed ){
180127 assert( !db->mallocFailed );
180139 assert(p || db->mallocFailed);
180283 assert( !db->mallocFailed );
180816 if( db->mallocFailed ){
180821 assert( !db->mallocFailed );
180866 if( db->mallocFailed ){
180894 if( !db || db->mallocFailed ){
180903 if( !db || db->mallocFailed ){
181584 if( db->mallocFailed ){
181650 if( !db->mallocFailed ){
181665 if( db->mallocFailed ){
181835 assert( !db->mallocFailed );
181860 assert( !db->mallocFailed );
183441 assert( !db->mallocFailed );
222972 assert( pData!=0 || pTab->db->mallocFailed );