Home | History | Annotate | Download | only in dist

Lines Matching refs:mallocFailed

8941   u8 mallocFailed;              /* True if we have seen a malloc failure */
10517 u8 mallocFailed; /* Becomes true if any memory allocation fails */
18042 ** the mallocFailed flag in the connection pointer.
18054 ** the mallocFailed flag in the connection pointer.
18056 ** If db!=0 and db->mallocFailed is true (indicating a prior malloc
18059 ** failing, it fails consistently until mallocFailed is reset.
18077 if( db->mallocFailed ){
18091 if( db && db->mallocFailed ){
18097 db->mallocFailed = 1;
18106 ** resize fails, set the mallocFailed flag in the connection object.
18112 if( db->mallocFailed==0 ){
18132 db->mallocFailed = 1;
18143 ** and set the mallocFailed flag in the database connection.
18221 ** mutex here. Otherwise the read (and possible write) of db->mallocFailed
18225 if( db && (db->mallocFailed || rc==SQLITE_IOERR_NOMEM) ){
18227 db->mallocFailed = 0;
18899 pAccum->mallocFailed = 1;
18979 if( p->tooBig | p->mallocFailed ){
18981 testcase(p->mallocFailed);
19018 p->mallocFailed = 1;
19045 p->mallocFailed = 1;
19077 p->mallocFailed = 0;
19094 if( acc.mallocFailed ){
19095 db->mallocFailed = 1;
19844 if( db->mallocFailed ){
19848 assert( (m.flags & MEM_Term)!=0 || db->mallocFailed );
19849 assert( (m.flags & MEM_Str)!=0 || db->mallocFailed );
19850 assert( (m.flags & MEM_Dyn)!=0 || db->mallocFailed );
19851 assert( m.z || db->mallocFailed );
19862 ** If a malloc failure occurs, NULL is returned and the db.mallocFailed
19872 assert( db->mallocFailed );
34435 ** The mallocFailed flag of the database connection is set if a
45009 int mallocFailed; /* A memory allocation error has occurred */
47250 db->mallocFailed = 0;
52786 if( pCheck->errMsg.mallocFailed ){
52787 pCheck->mallocFailed = 1;
52833 if( rc==SQLITE_NOMEM || rc==SQLITE_IOERR_NOMEM ) pCheck->mallocFailed = 1;
53091 pCheck->mallocFailed = 1;
53181 sCheck.mallocFailed = 0;
53255 if( sCheck.mallocFailed ){
54724 if( db->mallocFailed ){
55148 || pVal->db->mallocFailed );
55271 db->mallocFailed = 1;
55697 return ( v->db->mallocFailed || hasAbort==mayAbort );
55772 assert( aOp && !p->db->mallocFailed );
56017 if( p->aOp==0 || db->mallocFailed ){
56057 p->db->mallocFailed = 1;
56089 assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed );
56103 assert( p->aOp==0 || p->aOp[p->nOp-1].zComment==0 || p->db->mallocFailed );
56146 assert( (addr>=0 && addr<p->nOp) || p->db->mallocFailed );
56147 if( p->db->mallocFailed ){
56308 u8 malloc_failed = db->mallocFailed;
56339 db->mallocFailed = malloc_failed;
56399 db->mallocFailed = 1;
56506 assert( p->db->mallocFailed );
56523 assert( p->db->mallocFailed );
56698 if( nVar>=0 && ALWAYS(db->mallocFailed==0) ){
56735 }while( nByte && !db->mallocFailed );
56930 if( p->db->mallocFailed ){
57359 if( p->db->mallocFailed ){
57521 if( p->db->mallocFailed ){
57821 assert( pMem->db->mallocFailed || flags&(MEM_Str|MEM_Blob) );
58783 pCtx->s.db->mallocFailed = 1;
58832 if( db->mallocFailed ){
58950 if( !db->mallocFailed ){
59178 ** malloc() has failed, the threads mallocFailed flag is cleared and the result
59311 assert( db->mallocFailed==0 );
59314 ** is the case, clear the mallocFailed flag and return NULL.
59316 if( db->mallocFailed ){
59317 db->mallocFailed = 0;
61014 if( db->mallocFailed ) goto no_mem;
61556 if( db->mallocFailed ) goto no_mem;
61827 if( db->mallocFailed ){
61994 assert( pIn1->flags & MEM_Str || db->mallocFailed );
62014 assert( pIn1->flags & MEM_Str || db->mallocFailed );
62195 if( db->mallocFailed ) goto no_mem;
65152 assert( !db->mallocFailed );
66039 db->mallocFailed = 1;
66451 if( rc==SQLITE_IOERR_NOMEM ) db->mallocFailed = 1;
66473 db->mallocFailed = 1;
66483 if( db->mallocFailed ) rc = SQLITE_NOMEM;
66753 assert( pBlob->pStmt || db->mallocFailed );
66797 if( !db->mallocFailed ){
66806 if( db->mallocFailed ){
66814 if( rc==SQLITE_OK && db->mallocFailed==0 ){
68209 return (pParse->nErr || pParse->db->mallocFailed) ? WRC_Abort : WRC_Continue;
68382 if( !db->mallocFailed ){
68437 if( pOrderBy==0 || pParse->db->mallocFailed ) return 0;
68557 return (pParse->nErr || db->mallocFailed) ? WRC_Abort : WRC_Prune;
68604 if( pParse->nErr || db->mallocFailed ) return WRC_Abort;
68655 if( db->mallocFailed ){
68665 if( resolveOrderGroupBy(&sNC, p, pGroupBy, "GROUP") || db->mallocFailed ){
69256 assert( db->mallocFailed );
69282 ** Expr node. Or, if an OOM error occurs, set pParse->db->mallocFailed,
69408 if( !db->mallocFailed ){
69826 ** NULL. If a memory allocation fails, the pParse->db->mallocFailed flag
69835 assert( pList!=0 || pParse->db->mallocFailed!=0 );
69851 ** NULL. If a memory allocation fails, the pParse->db->mallocFailed flag
69860 assert( pList!=0 || db->mallocFailed!=0 );
69864 assert( db->mallocFailed || pItem->pExpr==pSpan->pExpr );
70407 assert( testAddr>0 || pParse->db->mallocFailed );
71080 assert( pParse->db->mallocFailed );
71629 assert( db->mallocFailed || pParse->nErr>0
71700 assert( pParse->pVdbe || pParse->db->mallocFailed );
72959 if( NEVER(db->mallocFailed) ) goto exit_rename_table;
73184 if( pParse->nErr || db->mallocFailed ) return;
73241 db->mallocFailed = 1;
73308 if( db->mallocFailed ) goto exit_begin_add_column;
73346 db->mallocFailed = 1;
73648 if( db->mallocFailed ){
73944 ** If an OOM error occurs, this function always sets db->mallocFailed.
74014 db->mallocFailed = 1;
74042 db->mallocFailed = 1;
74057 db->mallocFailed = 1;
74271 db->mallocFailed = 1;
74398 assert( v || db->mallocFailed );
74947 pToplevel->db->mallocFailed = 1;
74988 if( db->mallocFailed ) return;
75048 if( v && ALWAYS(pParse->nErr==0) && !db->mallocFailed ){
75655 db->mallocFailed = 1;
76218 db->mallocFailed = 1;
76290 if( (pEnd==0 && pSelect==0) || db->mallocFailed ){
76460 db->mallocFailed = 1;
76531 if( db->mallocFailed ){
76811 if( db->mallocFailed ){
77074 db->mallocFailed = 1;
77239 if( db->mallocFailed || IN_DECLARE_VTAB ){
77281 if( !pTab || db->mallocFailed ) goto exit_create_index;
77410 if( db->mallocFailed ){
77559 db->mallocFailed = 1;
77719 if( db->mallocFailed ){
77897 ** db->mallocFailed flag will be set to true.
77921 assert( db->mallocFailed );
77995 if( db->mallocFailed ){
78019 assert(pList || pParse->db->mallocFailed );
78263 db->mallocFailed = 1;
78727 db->mallocFailed = 1;
78994 db->mallocFailed = 1;
79246 if( pParse->nErr || db->mallocFailed ){
80622 || sqlite3_context_db_handle(context)->mallocFailed );
81045 }else if( pAccum->mallocFailed ){
81063 db->mallocFailed = 1;
81415 ** pParse->db->mallocFailed flag is set.
81963 if( !isIgnoreErrors || db->mallocFailed ) return;
82026 if( !isIgnoreErrors || db->mallocFailed ) return;
82332 if( db->mallocFailed==1 ){
82500 db->mallocFailed = 1;
82542 db->mallocFailed = 1;
82908 if( pParse->nErr || db->mallocFailed ){
83033 if( rc || NEVER(pParse->nErr) || db->mallocFailed ){
84354 db->mallocFailed = 1;
85894 db->mallocFailed = 1;
87013 if( !db->mallocFailed && (db->flags & SQLITE_RecoveryMode)==0 ){
87022 pData->rc = db->mallocFailed ? SQLITE_NOMEM : SQLITE_CORRUPT;
87046 if( db->mallocFailed ){
87079 db->mallocFailed = 1;
87325 if( db->mallocFailed ){
87354 db->mallocFailed = 1;
87449 db->mallocFailed = 1;
87527 assert( !db->mallocFailed );
87594 if( db->mallocFailed ){
87604 if( db->mallocFailed ){
87640 if( pParse->pVdbe && (rc!=SQLITE_OK || db->mallocFailed) ){
87717 db->mallocFailed = 1;
87913 assert( db->mallocFailed || !pOffset || pLimit ); /* OFFSET implies LIMIT */
87935 if( db->mallocFailed ) {
89004 if( pParse->colNamesSet || NEVER(v==0) || db->mallocFailed ) return;
89109 if( db->mallocFailed ){
89131 if( db->mallocFailed ){
89170 assert( nCol==pSelect->pEList->nExpr || db->mallocFailed );
89171 if( db->mallocFailed ) return;
89216 if( db->mallocFailed ){
89773 if( pParse->db->mallocFailed ) return 0;
90034 for(i=1; db->mallocFailed==0 && i<=p->pEList->nExpr; i++){
90102 assert( nOrderBy>=nExpr || db->mallocFailed );
90701 if( db->mallocFailed ) return 1;
90766 assert( db->mallocFailed );
90788 if( db->mallocFailed ){
91004 if( db->mallocFailed ){
91074 if( db->mallocFailed || sqliteProcessJoin(pParse, p) ){
91139 if( db->mallocFailed ) break;
91240 ** and/or pParse->db->mallocFailed.
91332 if( pParse->nErr || db->mallocFailed ) return;
91334 if( pParse->nErr || db->mallocFailed ) return;
91545 if( p==0 || db->mallocFailed || pParse->nErr ){
91564 if( pParse->nErr || db->mallocFailed ){
91620 if( /*pParse->nErr ||*/ db->mallocFailed ){
91809 if( db->mallocFailed ) goto select_end;
92107 if( pMinMax && !db->mallocFailed ){
92599 if( !pTableName || db->mallocFailed ){
92609 if( db->mallocFailed ) goto trigger_cleanup;
92784 db->mallocFailed = 1;
92824 ** If an OOM error occurs, NULL is returned and db->mallocFailed is set.
92862 assert(pEList != 0 || pSelect != 0 || db->mallocFailed);
92954 if( db->mallocFailed ) goto drop_trigger_cleanup;
93329 && db->mallocFailed==0
93348 if( db->mallocFailed==0 ){
93417 assert( pPrg || pParse->nErr || pParse->db->mallocFailed );
93706 if( pParse->nErr || db->mallocFailed ){
94426 || NEVER(db->mallocFailed)
94632 db->mallocFailed = 1;
94975 db->mallocFailed = 1;
95045 if( rc==SQLITE_NOMEM ) db->mallocFailed = 1;
95246 && !db->mallocFailed
95519 pToplevel->db->mallocFailed = 1;
95839 ** the db->mallocFailed flag so that higher-level functions can detect it.
96392 if( db->mallocFailed ) return;
96419 testcase( db->mallocFailed );
96420 if( !db->mallocFailed ){
96631 if( db->mallocFailed ){
96676 if( db->mallocFailed ){
96775 if( !db->mallocFailed ){
97550 pParse->db->mallocFailed = 1;
97799 assert( db->mallocFailed );
98455 assert( pParse->db->mallocFailed );
98615 pParse->db->mallocFailed = 1;
99480 /* assert( pInfo->needToFreeIdxStr==0 || db->mallocFailed ); */
99639 if( db->mallocFailed ){
99716 if( db->mallocFailed ){
99923 if( pParse->nErr || db->mallocFailed ){
100006 if( db->mallocFailed ) goto whereBeginError;
100175 if( (pLevel->plan.wsFlags & WHERE_INDEXED)!=0 && !db->mallocFailed){
100323 if( db->mallocFailed==0 && pY->op==TK_NULL ){
104321 db->mallocFailed = 1;
104332 while( !db->mallocFailed && zSql[i]!=0 ){
104386 if( db->mallocFailed ){
105797 ** is returned and the mallocFailed flag cleared.
105860 assert( !db->mallocFailed );
105868 assert(p || db->mallocFailed);
105957 assert( !db->mallocFailed );
106274 if( db->mallocFailed ){
106278 assert( !db->mallocFailed );
106313 if( db->mallocFailed ){
106323 ** above. If this is the case, then the db->mallocFailed flag needs to
106327 db->mallocFailed = 0;
106342 if( !db || db->mallocFailed ){
106351 if( !db || db->mallocFailed ){
106670 if( db->mallocFailed ){
106704 if( db->mallocFailed ){
106725 if( !db->mallocFailed ){
106732 if( !db->mallocFailed && rc==SQLITE_OK ){
106744 if( !db->mallocFailed && rc==SQLITE_OK ){
106748 if( !db->mallocFailed && rc==SQLITE_OK ){
106753 if( !db->mallocFailed && rc==SQLITE_OK ){
106760 if( !db->mallocFailed && rc==SQLITE_OK ){
106766 if( !db->mallocFailed && rc==SQLITE_OK){
106874 assert( !db->mallocFailed );
106894 assert( !db->mallocFailed );
106915 assert( !db->mallocFailed );
107615 assert( !db->mallocFailed );