Lines Matching refs:mallocFailed
18056 u8 mallocFailed; /* True if we have seen a malloc failure */ member
31403 }else if( db->mallocFailed ){ in sqlite3DbMallocRawNN()
31436 if( db->mallocFailed ){ in sqlite3DbMallocRawNN()
31470 if( db->mallocFailed==0 ){ in dbReallocFinish()
31579 if( db->mallocFailed==0 && db->bBenignMalloc==0 ){ in sqlite3OomFault()
31580 db->mallocFailed = 1; in sqlite3OomFault()
31606 if( db->mallocFailed && db->nVdbeExec==0 ){ in sqlite3OomClear()
31607 db->mallocFailed = 0; in sqlite3OomClear()
31618 if( db->mallocFailed || rc==SQLITE_IOERR_NOMEM ){ in apiHandleError()
31645 if( db->mallocFailed || rc ){ in sqlite3ApiExit()
35446 if( db->mallocFailed ){ in sqlite3Utf16to8()
35450 assert( (m.flags & MEM_Term)!=0 || db->mallocFailed ); in sqlite3Utf16to8()
35451 assert( (m.flags & MEM_Str)!=0 || db->mallocFailed ); in sqlite3Utf16to8()
35452 assert( m.z || db->mallocFailed ); in sqlite3Utf16to8()
35766 if( db->mallocFailed ){ in sqlite3ErrorMsg()
35844 assert( p!=0 || pParse->db->mallocFailed ); in sqlite3DequoteNumber()
68168 rc = db->mallocFailed ? SQLITE_NOMEM_BKPT : SQLITE_INTERRUPT;
77687 && (pIdxKey->errCode!=SQLITE_NOMEM || pCur->pBtree->db->mallocFailed)
83996 if( p->db && p->db->mallocFailed ) return 1;
84656 assert( pMem->flags & MEM_Str || pMem->db->mallocFailed );
84681 assert( pMem->flags & MEM_Str || pMem->db->mallocFailed );
85186 || pVal->db->mallocFailed );
86137 if( p->db->mallocFailed==0 ){
86348 assert( pParse->db->mallocFailed );
86713 return ( v->db->mallocFailed || hasAbort==mayAbort || hasFkCounter
86772 assert( pParse->db->mallocFailed==0 ); /* tag-20230419-1 */
87019 assert( aOp && !p->db->mallocFailed );
87185 assert( addr>=0 || p->db->mallocFailed );
87193 assert( p->nOp>0 || p->db->mallocFailed );
87369 if( p->db->mallocFailed ) return 0;
87467 assert( p->aOp!=0 || db->mallocFailed );
87468 if( db->mallocFailed ){
87508 if( p->db->mallocFailed ){
87595 assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed );
87596 if( p->db->mallocFailed ){
88009 dummyDb.mallocFailed = 1;
88375 if( db->mallocFailed ){
88559 assert( db->mallocFailed==0 );
88611 if( !db->mallocFailed ){
88622 if( db->mallocFailed ){
88793 if( p->db->mallocFailed ){
89220 if( db->mallocFailed ){
89387 if( db->mallocFailed ){
89838 assert( pMem->db->mallocFailed || flags&(MEM_Str|MEM_Blob) );
90293 if( pKeyInfo->db->mallocFailed ) return 1;
90531 assert( pMem1->enc==pMem2->enc || pMem1->db->mallocFailed );
90831 || pPKey2->pKeyInfo->db->mallocFailed
91008 || pPKey2->pKeyInfo->db->mallocFailed
92311 assert( db->mallocFailed==0 );
92381 if( !db->mallocFailed ){
92964 u8 prior_mallocFailed = db->mallocFailed;
92977 assert( db->mallocFailed==0 || db->mallocFailed==1 );
92978 if( db->mallocFailed > prior_mallocFailed ){
94838 || pMem->db==0 || pMem->db->mallocFailed );
96078 if( db->mallocFailed ) goto no_mem;
97930 assert( db->mallocFailed || pRec->flags&(MEM_Str|MEM_Blob) );
101384 || db->mallocFailed
101413 assert( !db->mallocFailed );
102521 assert( zTab || db->mallocFailed );
102582 assert( db->mallocFailed );
102912 if( db->mallocFailed ) goto no_mem;
103085 || db->mallocFailed );
103479 if( db->mallocFailed ){
103828 assert( pBlob->pStmt || db->mallocFailed );
103863 assert( sqlite3VdbeCurrentAddr(v)==2 || db->mallocFailed );
103869 if( db->mallocFailed==0 ){
103880 if( db->mallocFailed==0 ){
103910 if( db->mallocFailed ){
103919 if( rc==SQLITE_OK && db->mallocFailed==0 ){
108120 if( db->mallocFailed ){
109350 if( pParse->db->mallocFailed ) break;
109455 if( pParse->db->mallocFailed ) break;
109484 assert( pParse->db->mallocFailed==0 || pParse->nErr!=0 );
109673 if( !db->mallocFailed ){
109741 if( pOrderBy==0 || pParse->db->mallocFailed || IN_RENAME_OBJECT ) return 0;
109957 assert( db->mallocFailed==0 );
110080 if( db->mallocFailed ){
110091 if( resolveOrderGroupBy(&sNC, p, pGroupBy, "GROUP") || db->mallocFailed ){
110635 if( ExprUseXList(p) && p->x.pList!=0 && !db->mallocFailed ){
111348 assert( db->mallocFailed );
111413 assert( pParse->db->mallocFailed );
111566 assert( db->mallocFailed );
111570 assert( db->mallocFailed );
111725 assert( !ExprUseYWin(p) || p->y.pWin!=0 || db->mallocFailed );
112230 assert( db->mallocFailed );
112321 if( p->pWin && db->mallocFailed==0 ) gatherSelectWindows(pNew);
112324 if( db->mallocFailed ){
112455 assert( pSubExpr!=0 || db->mallocFailed );
112465 if( !db->mallocFailed && pExpr->op==TK_SELECT && ALWAYS(pList!=0) ){
112533 assert( pList!=0 || pParse->db->mallocFailed!=0 );
112569 assert( pList!=0 || db->mallocFailed!=0 );
113974 rc = pParse->db->mallocFailed ? 1 :sqlite3Select(pParse, pCopy, &dest);
114215 if( ExprUseXSelect(pIn) && !pParse->db->mallocFailed ){
114285 if( pParse->db->mallocFailed ) goto sqlite3ExprCodeIN_oom_error;
115257 assert( op==TK_NULL || op==TK_ERROR || pParse->db->mallocFailed );
115570 if( pParse->db->mallocFailed ){
115796 if( db->mallocFailed ){
115916 if( !pParse->db->mallocFailed ){
116001 assert( pParse->pVdbe!=0 || pParse->db->mallocFailed );
116027 if( !db->mallocFailed ) sqlite3ExprCode(pParse, pExpr, target);
116160 if( db->mallocFailed==0 ){
116531 if( db->mallocFailed==0 ){
117400 assert( pParse->db->mallocFailed );
117907 if( NEVER(db->mallocFailed) ) goto exit_rename_table;
118097 assert( db->mallocFailed==0 );
118160 assert( db->mallocFailed == 1 );
118262 if( db->mallocFailed ) goto exit_begin_add_column;
118305 assert( db->mallocFailed );
118512 assert( pParse->db->mallocFailed==0 || pParse->nErr!=0 );
118547 assert( pPtr || pParse->db->mallocFailed );
118616 if( sNC.pParse->db->mallocFailed ) return;
118931 if( db->mallocFailed ) rc = SQLITE_NOMEM;
119157 if( db->mallocFailed ){
119336 rc = (db->mallocFailed ? SQLITE_NOMEM : sParse.rc);
119467 assert( pWalker->pParse->db->mallocFailed );
119727 rc = (db->mallocFailed ? SQLITE_NOMEM : sParse.rc);
119951 if( NEVER(db->mallocFailed) ) goto exit_drop_column;
119963 assert( db->mallocFailed );
122513 assert( v || db->mallocFailed );
123154 if( db->mallocFailed ) pParse->rc = SQLITE_NOMEM;
123157 assert( db->mallocFailed==0 );
123271 assert( db->mallocFailed==0 || pParse->nErr );
123313 if( !db->mallocFailed ) pParse->rc = SQLITE_TOOBIG;
123804 if( !db->mallocFailed && (pTable->tabFlags & TF_Ephemeral)==0 ){
124294 assert( db->mallocFailed );
124449 if( db->mallocFailed ) return;
125399 assert( db->mallocFailed==0 );
126034 if( db->mallocFailed ) goto create_view_fail;
126165 assert( db->mallocFailed==0 );
126189 if( db->mallocFailed ){
126486 if( db->mallocFailed ){
126960 assert( db->mallocFailed==0 );
127005 assert( db->mallocFailed==0 || pTab==0 );
127154 if( db->mallocFailed ){
127586 if( db->mallocFailed ){
127803 assert( db->mallocFailed );
127913 assert( pList || pParse->db->mallocFailed );
128696 assert( pNew!=0 || db->mallocFailed );
128698 if( db->mallocFailed ){
128766 assert( (pNew!=0 && zName!=0) || db->mallocFailed );
128768 if( db->mallocFailed ){
129683 assert( db->mallocFailed==0 );
131889 || sqlite3_context_db_handle(context)->mallocFailed );
134268 if( !isIgnoreErrors || db->mallocFailed ) return;
134363 if( !isIgnoreErrors || db->mallocFailed ) return;
134708 if( db->mallocFailed==1 ){
135005 assert( pPrev->opcode==OP_MakeRecord || sqlite3VdbeDb(v)->mallocFailed );
135031 || sqlite3VdbeDb(v)->mallocFailed );
135253 if( pParse->db->mallocFailed ) return 0;
135757 assert( db->mallocFailed==0 );
135962 assert( db->mallocFailed==0 );
136836 testcase( zMsg==0 && db->mallocFailed==0 );
136897 if( !db->mallocFailed ){
136905 assert( zName!=0 || pParse->db->mallocFailed );
137414 assert( nConflictCk>0 || db->mallocFailed );
141958 if( db->mallocFailed ){
142258 assert( x==0 || db->mallocFailed );
142284 assert( pFK->nCol==1 || db->mallocFailed );
142689 if( db->mallocFailed==0 ){
143266 if( !db->mallocFailed && nLimit>0 && nBtree>100 ){
143774 if( db->mallocFailed ){
143852 if( db->mallocFailed ){
144133 if( db->mallocFailed ){
144413 if( db->mallocFailed ) sqlite3ErrorMsg(pParse, "out of memory");
144453 if( db->mallocFailed ){
144542 if( db->mallocFailed ){
144608 if( rc==SQLITE_OK || db->mallocFailed ) break;
144980 assert( pParse->db->mallocFailed );
145010 if( pParse->db->mallocFailed ) {
145646 if( pParse->db->mallocFailed ) return;
145805 assert( sqlite3VdbeCurrentAddr(v)==iJump || pParse->db->mallocFailed );
146070 if( pExtra && pParse->db->mallocFailed==0 ){
147212 if( db->mallocFailed || IN_RENAME_OBJECT ) return;
147309 if( db->mallocFailed ){
147942 assert( p->pEList || db->mallocFailed );
147943 if( dest.eDest!=priorOp && db->mallocFailed==0 ){
148168 if( pParse->db->mallocFailed ) return 0;
148416 for(i=1; db->mallocFailed==0 && i<=p->pEList->nExpr; i++){
148464 assert( nOrderBy>=nExpr || db->mallocFailed );
148500 assert( pOrderBy!=0 || db->mallocFailed );
148778 if( db->mallocFailed ){
149456 if( aCsrMap && ALWAYS(db->mallocFailed==0) ){
149469 if( db->mallocFailed ){
149606 if( db->mallocFailed==0 ){
149794 if( pConst->pParse->db->mallocFailed ) return WRC_Prune;
149895 x.pOomFault = &pParse->db->mallocFailed;
150341 assert( pOrderBy!=0 || db->mallocFailed );
150677 if( db->mallocFailed ) return 2;
150900 if( db->mallocFailed ){
151016 assert( db->mallocFailed==0 || pParse->nErr!=0 );
151098 if( db->mallocFailed ) break;
151390 assert( p!=0 || pParse->db->mallocFailed );
151392 if( pParse->db->mallocFailed ) return;
151596 assert( pParse->db->mallocFailed==0 || pParse->nErr!=0 );
152297 assert( db->mallocFailed==0 );
152339 assert( db->mallocFailed==0 );
152565 if( db->mallocFailed ) goto select_end;
152613 if( db->mallocFailed ) goto select_end;
152815 if( db->mallocFailed ) goto select_end;
153101 if( db->mallocFailed ){
153134 if( db->mallocFailed ) goto select_end;
153624 assert( db->mallocFailed==0 || db->mallocFailed==1 );
153625 assert( db->mallocFailed==0 || pParse->nErr!=0 );
153629 if( pAggInfo && !db->mallocFailed ){
154006 if( !pTableName || db->mallocFailed ){
154037 if( db->mallocFailed ) goto trigger_cleanup;
154061 assert( db->mallocFailed );
154370 assert(pSelect != 0 || db->mallocFailed);
154494 if( db->mallocFailed ) goto drop_trigger_cleanup;
154804 if( !db->mallocFailed ){
154813 if( !db->mallocFailed && ALWAYS(pList->a[i].zEName!=0) ){
154932 assert( db->mallocFailed==0 );
154950 && ALWAYS(!db->mallocFailed)
155173 if( db->mallocFailed==0
155194 assert( db->mallocFailed==0 );
155692 assert( pChanges!=0 || pParse->db->mallocFailed );
155793 assert( db->mallocFailed==0 );
157404 || NEVER(db->mallocFailed)
158419 assert( !db->mallocFailed );
159742 if( db->mallocFailed ) return;
159967 assert( sqlite3VdbeDb(v)->mallocFailed || pOp->opcode==OP_InitCoroutine );
159968 assert( sqlite3VdbeDb(v)->mallocFailed || pOp->p2>addr );
160059 assert( pParse->db->mallocFailed );
160182 if( db->mallocFailed==0 ){
160236 assert( pRhs!=0 || db->mallocFailed );
160312 if( !db->mallocFailed ){
160524 assert( zAff!=0 || pParse->db->mallocFailed );
160582 assert( pParse->db->mallocFailed==0 );
160625 || pTerm->pWC->pWInfo->pParse->db->mallocFailed );
161215 if( db->mallocFailed ) pLoop->u.vtab.idxStr = 0;
161229 && !db->mallocFailed
161256 if( !db->mallocFailed ){
161716 assert( pParse->db->mallocFailed );
162020 if( db->mallocFailed ){
163243 if( db->mallocFailed ) return;
163272 if( !db->mallocFailed ){
163665 if( db->mallocFailed ){
163766 if( db->mallocFailed ){
163933 if( noCase && !pParse->db->mallocFailed ){
163943 if( !db->mallocFailed ){
165194 if( pParse->db->mallocFailed ) return;
165538 assert( nKeyCol>0 || pParse->db->mallocFailed );
165694 testcase( pParse->db->mallocFailed );
166292 if( pParse->db->mallocFailed==0 ){
166299 || pParse->db->mallocFailed
166309 || pParse->db->mallocFailed );
166318 || pParse->db->mallocFailed || CORRUPT_DB );
166323 || pParse->db->mallocFailed || CORRUPT_DB );
167614 assert( db->mallocFailed==0 || pParse->nErr>0 );
169362 if( rc || db->mallocFailed ){
171201 if( db->mallocFailed ){
171408 if( db->mallocFailed ) goto whereBeginError;
171412 if( db->mallocFailed ) goto whereBeginError;
171433 assert( db->mallocFailed==0 );
171712 if( db->mallocFailed ) goto whereBeginError;
171749 if( db->mallocFailed ) goto whereBeginError;
171885 || pParse->db->mallocFailed );
172006 testcase( pParse->db->mallocFailed );
172031 && !db->mallocFailed
172946 if( pParse->db->mallocFailed ) return WRC_Abort;
172975 if( pParse->db->mallocFailed ) return WRC_Abort;
173058 if( db->mallocFailed ){
173260 if( db->mallocFailed ) rc = SQLITE_NOMEM;
181961 VVA_ONLY( u8 startedWithOom = db->mallocFailed );
182065 assert( db->mallocFailed==0 || pParse->rc!=SQLITE_OK || startedWithOom );
182081 if( db->mallocFailed ){
184651 assert( !db->mallocFailed );
184663 assert(p || db->mallocFailed);
184807 assert( !db->mallocFailed );
185340 if( db->mallocFailed ){
185345 assert( !db->mallocFailed );
185390 if( db->mallocFailed ){
185418 if( !db || db->mallocFailed ){
185427 if( !db || db->mallocFailed ){
186111 if( db->mallocFailed ){
186178 if( !db->mallocFailed ){
186193 if( db->mallocFailed ){
186363 assert( !db->mallocFailed );
186388 assert( !db->mallocFailed );
187963 assert( !db->mallocFailed );
211465 if( db->mallocFailed ) goto json_pfa_oom;