Lines Matching defs:mallocFailed

9457   u8 mallocFailed;              /* True if we have seen a malloc failure */
11057 u8 mallocFailed; /* Becomes true if any memory allocation fails */
18679 ** the mallocFailed flag in the connection pointer.
18691 ** the mallocFailed flag in the connection pointer.
18693 ** If db!=0 and db->mallocFailed is true (indicating a prior malloc
18696 ** failing, it fails consistently until mallocFailed is reset.
18714 if( db->mallocFailed ){
18734 if( db && db->mallocFailed ){
18740 db->mallocFailed = 1;
18749 ** resize fails, set the mallocFailed flag in the connection object.
18755 if( db->mallocFailed==0 ){
18775 db->mallocFailed = 1;
18786 ** and set the mallocFailed flag in the database connection.
18864 ** mutex here. Otherwise the read (and possible write) of db->mallocFailed
18868 if( db && (db->mallocFailed || rc==SQLITE_IOERR_NOMEM) ){
18870 db->mallocFailed = 0;
19546 pAccum->mallocFailed = 1;
19626 if( p->tooBig | p->mallocFailed ){
19628 testcase(p->mallocFailed);
19665 p->mallocFailed = 1;
19692 p->mallocFailed = 1;
19724 p->mallocFailed = 0;
19741 if( acc.mallocFailed ){
19742 db->mallocFailed = 1;
20499 if( db->mallocFailed ){
20503 assert( (m.flags & MEM_Term)!=0 || db->mallocFailed );
20504 assert( (m.flags & MEM_Str)!=0 || db->mallocFailed );
20505 assert( (m.flags & MEM_Dyn)!=0 || db->mallocFailed );
20506 assert( m.z || db->mallocFailed );
20517 ** If a malloc failure occurs, NULL is returned and the db.mallocFailed
20527 assert( db->mallocFailed );
37151 ** The mallocFailed flag of the database connection is set if a
47975 int mallocFailed; /* A memory allocation error has occurred */
50151 db->mallocFailed = 0;
55725 if( pCheck->errMsg.mallocFailed ){
55726 pCheck->mallocFailed = 1;
55772 if( rc==SQLITE_NOMEM || rc==SQLITE_IOERR_NOMEM ) pCheck->mallocFailed = 1;
56030 pCheck->mallocFailed = 1;
56120 sCheck.mallocFailed = 0;
56194 if( sCheck.mallocFailed ){
57706 if( db->mallocFailed ){
58130 || pVal->db->mallocFailed );
58261 db->mallocFailed = 1;
58700 return ( v->db->mallocFailed || hasAbort==mayAbort );
58781 assert( aOp && !p->db->mallocFailed );
59021 if( p->aOp==0 || db->mallocFailed ){
59061 p->db->mallocFailed = 1;
59093 assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed );
59107 assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed );
59150 assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed );
59151 if( p->db->mallocFailed ){
59374 u8 malloc_failed = db->mallocFailed;
59405 db->mallocFailed = malloc_failed;
59465 db->mallocFailed = 1;
59572 assert( p->db->mallocFailed );
59589 assert( p->db->mallocFailed );
59786 assert( db->mallocFailed==0 );
59842 }while( nByte && !db->mallocFailed );
60019 if( p->db->mallocFailed ){
60431 if( p->db->mallocFailed ){
60592 if( p->db->mallocFailed ){
60900 assert( pMem->db->mallocFailed || flags&(MEM_Str|MEM_Blob) );
61852 pCtx->s.db->mallocFailed = 1;
61920 if( db->mallocFailed ){
62048 if( !db->mallocFailed ){
62278 ** malloc() has failed, the threads mallocFailed flag is cleared and the result
62411 assert( db->mallocFailed==0 );
62414 ** is the case, clear the mallocFailed flag and return NULL.
62416 if( db->mallocFailed ){
62417 db->mallocFailed = 0;
64126 if( db->mallocFailed ) goto no_mem;
64675 if( db->mallocFailed ) goto no_mem;
64952 if( db->mallocFailed ){
65143 assert( pIn1->flags & MEM_Str || db->mallocFailed );
65163 assert( pIn1->flags & MEM_Str || db->mallocFailed );
65344 if( db->mallocFailed ) goto no_mem;
68436 assert( !db->mallocFailed );
69330 db->mallocFailed = 1;
69756 if( rc==SQLITE_IOERR_NOMEM ) db->mallocFailed = 1;
69781 db->mallocFailed = 1;
69791 if( db->mallocFailed ) rc = SQLITE_NOMEM;
70061 assert( pBlob->pStmt || db->mallocFailed );
70106 if( !db->mallocFailed ){
70118 if( db->mallocFailed ){
70126 if( rc==SQLITE_OK && db->mallocFailed==0 ){
72408 return (pParse->nErr || pParse->db->mallocFailed) ? WRC_Abort : WRC_Continue;
72581 if( !db->mallocFailed ){
72636 if( pOrderBy==0 || pParse->db->mallocFailed ) return 0;
72756 return (pParse->nErr || db->mallocFailed) ? WRC_Abort : WRC_Prune;
72813 if( pParse->nErr || db->mallocFailed ) return WRC_Abort;
72868 if( db->mallocFailed ){
72878 if( resolveOrderGroupBy(&sNC, p, pGroupBy, "GROUP") || db->mallocFailed ){
73470 assert( db->mallocFailed );
73496 ** Expr node. Or, if an OOM error occurs, set pParse->db->mallocFailed,
73617 if( a==0 ) return; /* Error reported through db->mallocFailed */
74044 ** NULL. If a memory allocation fails, the pParse->db->mallocFailed flag
74053 assert( pList!=0 || pParse->db->mallocFailed!=0 );
74069 ** NULL. If a memory allocation fails, the pParse->db->mallocFailed flag
74078 assert( pList!=0 || db->mallocFailed!=0 );
74082 assert( db->mallocFailed || pItem->pExpr==pSpan->pExpr );
75289 assert( pParse->db->mallocFailed );
75840 assert( db->mallocFailed || pParse->nErr>0
75911 assert( pParse->pVdbe || pParse->db->mallocFailed );
77190 if( NEVER(db->mallocFailed) ) goto exit_rename_table;
77412 if( pParse->nErr || db->mallocFailed ) return;
77469 db->mallocFailed = 1;
77536 if( db->mallocFailed ) goto exit_begin_add_column;
77577 db->mallocFailed = 1;
77891 if( db->mallocFailed ){
78202 ** If an OOM error occurs, this function always sets db->mallocFailed.
78275 db->mallocFailed = 1;
78303 db->mallocFailed = 1;
78318 db->mallocFailed = 1;
78460 if( rc==SQLITE_NOMEM ) db->mallocFailed = 1;
78548 db->mallocFailed = 1;
78677 assert( v || db->mallocFailed );
79226 pToplevel->db->mallocFailed = 1;
79267 if( db->mallocFailed ) return;
79330 if( v && ALWAYS(pParse->nErr==0) && !db->mallocFailed ){
79964 db->mallocFailed = 1;
80529 db->mallocFailed = 1;
80601 if( (pEnd==0 && pSelect==0) || db->mallocFailed ){
80773 db->mallocFailed = 1;
80844 if( db->mallocFailed ){
81152 if( db->mallocFailed ){
81410 db->mallocFailed = 1;
81611 if( db->mallocFailed || IN_DECLARE_VTAB ){
81653 if( !pTab || db->mallocFailed ) goto exit_create_index;
81785 if( db->mallocFailed ){
81936 db->mallocFailed = 1;
82095 if( db->mallocFailed ){
82269 ** db->mallocFailed flag will be set to true.
82293 assert( db->mallocFailed );
82367 if( db->mallocFailed ){
82391 assert(pList || pParse->db->mallocFailed );
82636 db->mallocFailed = 1;
83117 db->mallocFailed = 1;
83387 db->mallocFailed = 1;
83648 if( pParse->nErr || db->mallocFailed ){
85050 || sqlite3_context_db_handle(context)->mallocFailed );
85468 }else if( pAccum->mallocFailed ){
85486 db->mallocFailed = 1;
85839 ** pParse->db->mallocFailed flag is set.
86398 if( !isIgnoreErrors || db->mallocFailed ) return;
86477 if( !isIgnoreErrors || db->mallocFailed ) return;
86783 if( db->mallocFailed==1 ){
86952 db->mallocFailed = 1;
86994 db->mallocFailed = 1;
87361 if( pParse->nErr || db->mallocFailed ){
87486 if( rc || NEVER(pParse->nErr) || db->mallocFailed ){
88819 db->mallocFailed = 1;
90379 db->mallocFailed = 1;
91515 if( !db->mallocFailed && (db->flags & SQLITE_RecoveryMode)==0 ){
91524 pData->rc = db->mallocFailed ? SQLITE_NOMEM : SQLITE_CORRUPT_BKPT;
91548 if( db->mallocFailed ){
91581 db->mallocFailed = 1;
91826 if( db->mallocFailed ){
91855 db->mallocFailed = 1;
91950 db->mallocFailed = 1;
92030 assert( !db->mallocFailed );
92097 if( db->mallocFailed ){
92104 if( db->mallocFailed ){
92140 if( pParse->pVdbe && (rc!=SQLITE_OK || db->mallocFailed) ){
92217 db->mallocFailed = 1;
92413 assert( db->mallocFailed || !pOffset || pLimit ); /* OFFSET implies LIMIT */
92435 if( db->mallocFailed ) {
93531 if( pParse->colNamesSet || NEVER(v==0) || db->mallocFailed ) return;
93636 if( db->mallocFailed ){
93658 if( db->mallocFailed ){
93697 assert( nCol==pSelect->pEList->nExpr || db->mallocFailed );
93698 if( db->mallocFailed ) return;
93743 if( db->mallocFailed ){
94300 if( pParse->db->mallocFailed ) return 0;
94561 for(i=1; db->mallocFailed==0 && i<=p->pEList->nExpr; i++){
94629 assert( nOrderBy>=nExpr || db->mallocFailed );
95234 if( db->mallocFailed ) return 1;
95299 assert( db->mallocFailed );
95321 if( db->mallocFailed ){
95537 if( db->mallocFailed ){
95607 if( db->mallocFailed || sqliteProcessJoin(pParse, p) ){
95672 if( db->mallocFailed ) break;
95773 ** and/or pParse->db->mallocFailed.
95865 if( pParse->nErr || db->mallocFailed ) return;
95867 if( pParse->nErr || db->mallocFailed ) return;
96105 if( p==0 || db->mallocFailed || pParse->nErr ){
96124 if( pParse->nErr || db->mallocFailed ){
96207 if( /*pParse->nErr ||*/ db->mallocFailed ){
96457 if( db->mallocFailed ) goto select_end;
96765 if( pMinMax && !db->mallocFailed ){
97254 if( !pTableName || db->mallocFailed ){
97283 if( db->mallocFailed ) goto trigger_cleanup;
97461 db->mallocFailed = 1;
97501 ** If an OOM error occurs, NULL is returned and db->mallocFailed is set.
97539 assert(pEList != 0 || pSelect != 0 || db->mallocFailed);
97631 if( db->mallocFailed ) goto drop_trigger_cleanup;
98017 && db->mallocFailed==0
98036 if( db->mallocFailed==0 ){
98105 assert( pPrg || pParse->nErr || pParse->db->mallocFailed );
98394 if( pParse->nErr || db->mallocFailed ){
99117 || NEVER(db->mallocFailed)
99339 db->mallocFailed = 1;
99681 db->mallocFailed = 1;
99754 if( rc==SQLITE_NOMEM ) db->mallocFailed = 1;
99963 && !db->mallocFailed
100288 pToplevel->db->mallocFailed = 1;
100667 ** the db->mallocFailed flag so that higher-level functions can detect it.
101228 if( db->mallocFailed ) return;
101255 testcase( db->mallocFailed );
101256 if( !db->mallocFailed ){
101467 if( db->mallocFailed ){
101512 if( db->mallocFailed ){
101611 if( !db->mallocFailed ){
102599 pParse->db->mallocFailed = 1;
102867 assert( db->mallocFailed );
103758 assert( pParse->db->mallocFailed );
103918 pParse->db->mallocFailed = 1;
104789 /* assert( pInfo->needToFreeIdxStr==0 || db->mallocFailed ); */
104949 if( db->mallocFailed ){
105030 if( db->mallocFailed ){
105251 if( pParse->nErr || db->mallocFailed ){
105334 if( db->mallocFailed ) goto whereBeginError;
105503 if( (pLevel->plan.wsFlags & WHERE_INDEXED)!=0 && !db->mallocFailed){
105652 if( db->mallocFailed==0 && pY->op==TK_NULL ){
109651 db->mallocFailed = 1;
109661 while( !db->mallocFailed && zSql[i]!=0 ){
109715 if( db->mallocFailed ){
111172 ** is returned and the mallocFailed flag cleared.
111235 assert( !db->mallocFailed );
111243 assert(p || db->mallocFailed);
111332 assert( !db->mallocFailed );
111684 if( db->mallocFailed ){
111688 assert( !db->mallocFailed );
111723 if( db->mallocFailed ){
111733 ** above. If this is the case, then the db->mallocFailed flag needs to
111737 db->mallocFailed = 0;
111752 if( !db || db->mallocFailed ){
111761 if( !db || db->mallocFailed ){
112309 if( db->mallocFailed ){
112323 if( rc==SQLITE_NOMEM ) db->mallocFailed = 1;
112352 if( db->mallocFailed ){
112373 if( !db->mallocFailed ){
112380 if( !db->mallocFailed && rc==SQLITE_OK ){
112387 if( !db->mallocFailed && rc==SQLITE_OK ){
112393 if( !db->mallocFailed && rc==SQLITE_OK ){
112399 if( !db->mallocFailed && rc==SQLITE_OK){
112508 assert( !db->mallocFailed );
112528 assert( !db->mallocFailed );
112549 assert( !db->mallocFailed );
113284 assert( !db->mallocFailed );