Home
last modified time | relevance | path

Searched refs:sqlite3_malloc (Results 1 – 25 of 113) sorted by relevance

12345

/sqlite-3.40.0/test/
H A Dmemsubsys2.test62 # Test 1: Verify that calling sqlite3_malloc(0) returns a NULL
67 sqlite3_malloc 0
80 sqlite3_free [set x [sqlite3_malloc 100000]]
103 sqlite3_malloc 0
112 set ::allocation [sqlite3_malloc 100000]
141 sqlite3_malloc 0
150 set ::allocation [sqlite3_malloc 100000]
/sqlite-3.40.0/src/
H A Dtest_fs.c160 pTab = (FsdirVtab *)sqlite3_malloc(sizeof(FsdirVtab)); in fsdirConnect()
214 pCur = (FsdirCsr*)sqlite3_malloc(sizeof(FsdirCsr)+256); in fsdirOpen()
276 pCsr->zDir = sqlite3_malloc(nDir+1); in fsdirFilter()
366 pTab = (FstreeVtab *)sqlite3_malloc(sizeof(FstreeVtab)); in fstreeConnect()
420 pCur = (FstreeCsr*)sqlite3_malloc(sizeof(FstreeCsr)); in fstreeOpen()
578 char *aBuf = sqlite3_malloc(sBuf.st_mode+1); in fstreeColumn()
H A Dtest_hexio.c120 zBuf = sqlite3_malloc( amt*2+1 ); in hexio_read()
171 aOut = sqlite3_malloc( 1 + nIn/2 ); in hexio_write()
216 aOut = sqlite3_malloc( 1 + nIn/2 ); in hexio_get_int()
312 z = sqlite3_malloc( n+4 ); in utf8_to_utf8()
H A Dtest_quota.c358 pFile = (quotaFile *)sqlite3_malloc( sizeof(*pFile) + nName + 1 ); in quotaFindFile()
389 zTmpWide = (LPWSTR)sqlite3_malloc( (nWide+1)*sizeof(zTmpWide[0]) ); in quota_utf8_to_mbcs()
394 zMbcs = nMbcs ? (char*)sqlite3_malloc( nMbcs+1 ) : 0; in quota_utf8_to_mbcs()
862 pGroup = (quotaGroup *)sqlite3_malloc( sizeof(*pGroup) + nPattern + 1 ); in sqlite3_quota_set()
900 fd = (sqlite3_file *)sqlite3_malloc(nAlloc); in sqlite3_quota_file()
944 zFull = (char*)sqlite3_malloc(gQuota.sThisVfs.mxPathname + 1); in sqlite3_quota_fopen()
949 p = (quota_FILE*)sqlite3_malloc(sizeof(*p)); in sqlite3_quota_fopen()
1239 zFull = (char*)sqlite3_malloc(gQuota.sThisVfs.mxPathname + 1); in sqlite3_quota_remove()
1439 p = (TclQuotaCallback *)sqlite3_malloc(sizeof(TclQuotaCallback)); in test_quota_set()
1589 zBuf = (char*)sqlite3_malloc( sz*nElem + 1 ); in test_quota_fread()
H A Dtest_func.c34 char *z = sqlite3_malloc(nByte); in testContextMalloc()
250 pCounter = sqlite3_malloc( sizeof(*pCounter) ); in counterFunc()
365 zOut = sqlite3_malloc( n/2 ); in testHexToUtf16be()
392 zOut = sqlite3_malloc( n/2 ); in testHexToUtf8()
419 zOut = sqlite3_malloc( n/2 ); in testHexToUtf16le()
H A Dtest_rtree.c87 pCircle = (Circle *)(p->pUser = sqlite3_malloc(sizeof(Circle))); in circle_geom()
194 pCircle = (Circle *)(p->pUser = sqlite3_malloc(sizeof(Circle))); in circle_query_func()
412 pCube = (Cube *)sqlite3_malloc(sizeof(Cube)); in cube_geom()
H A Dtest_schema.c95 schema_vtab *pVtab = sqlite3_malloc(sizeof(schema_vtab)); in schemaCreate()
113 pCur = sqlite3_malloc(sizeof(schema_cursor)); in schemaOpen()
/sqlite-3.40.0/ext/fts5/
H A Dfts5_test_tok.c197 pTab = (Fts5tokTable*)sqlite3_malloc(sizeof(Fts5tokTable)); in fts5tokConnectMethod()
278 pCsr = (Fts5tokCursor *)sqlite3_malloc(sizeof(Fts5tokCursor)); in fts5tokOpenMethod()
350 pRow->zToken = sqlite3_malloc(nToken+1); in fts5tokCb()
377 pCsr->zInput = sqlite3_malloc(nByte+1); in fts5tokFilterMethod()
/sqlite-3.40.0/ext/misc/
H A Dsqlar.c49 pOut = (Bytef*)sqlite3_malloc(nOut); in sqlarCompressFunc()
93 Bytef *pOut = sqlite3_malloc(sz); in sqlarUncompressFunc()
H A Dvtshim.c89 pNew = sqlite3_malloc( sizeof(*pNew) ); in vtshimCreate()
128 pNew = sqlite3_malloc( sizeof(*pNew) ); in vtshimConnect()
195 pCur = sqlite3_malloc( sizeof(*pCur) ); in vtshimOpen()
447 p = sqlite3_malloc( sizeof(*p) ); in vtshimCopyModule()
467 pAux = sqlite3_malloc( sizeof(*pAux) ); in sqlite3_create_disposable_module()
H A Dcompress.c62 pOut = sqlite3_malloc( nOut+5 ); in compressFunc()
101 pOut = sqlite3_malloc( nOut+1 ); in uncompressFunc()
H A Dtemplatevtab.c104 pNew = sqlite3_malloc( sizeof(*pNew) ); in templatevtabConnect()
126 pCur = sqlite3_malloc( sizeof(*pCur) ); in templatevtabOpen()
H A Dwholenumber.c50 pNew = *ppVtab = sqlite3_malloc( sizeof(*pNew) ); in wholenumberConnect()
72 pCur = sqlite3_malloc( sizeof(*pCur) ); in wholenumberOpen()
H A Dprefixes.c78 pNew = sqlite3_malloc( sizeof(*pNew) ); in prefixesConnect()
101 pCur = sqlite3_malloc( sizeof(*pCur) ); in prefixesOpen()
H A Dexplain.c95 pNew = sqlite3_malloc( sizeof(*pNew) ); in explainConnect()
117 pCur = sqlite3_malloc( sizeof(*pCur) ); in explainOpen()
H A Dseries.c130 pNew = *ppVtab = sqlite3_malloc( sizeof(*pNew) ); in seriesConnect()
152 pCur = sqlite3_malloc( sizeof(*pCur) ); in seriesOpen()
H A Dmemstat.c88 pNew = sqlite3_malloc( sizeof(*pNew) ); in memstatConnect()
110 pCur = sqlite3_malloc( sizeof(*pCur) ); in memstatOpen()
H A Ddecimal.c74 p = sqlite3_malloc( sizeof(*p) ); in decimal_new()
195 z = sqlite3_malloc( p->nDigit+4 ); in decimal_result()
488 p->a = sqlite3_malloc(2); in decimalSumStep()
/sqlite-3.40.0/ext/fts2/
H A Dfts2_tokenizer1.c70 t = (simple_tokenizer *) sqlite3_malloc(sizeof(*t)); in simpleCreate()
124 c = (simple_tokenizer_cursor *) sqlite3_malloc(sizeof(*c)); in simpleOpen()
H A Dfts2_icu.c65 p = (IcuTokenizer *)sqlite3_malloc(sizeof(IcuTokenizer)+n); in icuCreate()
119 pCsr = (IcuCursor *)sqlite3_malloc( in icuOpen()
H A Dfts2.c1615 char *str = sqlite3_malloc(n + 1); in string_dup_n()
1648 r = result = sqlite3_malloc(len); in string_format()
2706 azArg = sqlite3_malloc( sizeof(char*)*argc + n ); in parseSpec()
2820 v = (fulltext_vtab *) sqlite3_malloc(sizeof(fulltext_vtab)); in constructVtab()
3493 t->pTerm = sqlite3_malloc(nTerm+1); in queryAdd()
5404 p = sqlite3_malloc(nMaxBuffers*sizeof(*pBuffers)); in loadSegmentLeavesInt()
5788 pData = sqlite3_malloc(n*sizeof(TermData)); in writeZeroSegment()
6226 readers = sqlite3_malloc(nReaders*sizeof(readers[0])); in optimizeFunc()
6354 pData = sqlite3_malloc(nTerms*sizeof(TermData)); in generateTermsResult()
6368 result = sqlite3_malloc(nResultBytes); in generateTermsResult()
[all …]
/sqlite-3.40.0/ext/fts3/
H A Dfts3_tokenizer1.c67 t = (simple_tokenizer *) sqlite3_malloc(sizeof(*t)); in simpleCreate()
122 c = (simple_tokenizer_cursor *) sqlite3_malloc(sizeof(*c)); in simpleOpen()
H A Dfts3_unicode.c227 pNew = (unicode_tokenizer *) sqlite3_malloc(sizeof(unicode_tokenizer)); in unicodeCreate()
279 pCsr = (unicode_cursor *)sqlite3_malloc(sizeof(unicode_cursor)); in unicodeOpen()
H A Dfts3_tokenize_vtab.c197 pTab = (Fts3tokTable *)sqlite3_malloc(sizeof(Fts3tokTable)); in fts3tokConnectMethod()
267 pCsr = (Fts3tokCursor *)sqlite3_malloc(sizeof(Fts3tokCursor)); in fts3tokOpenMethod()
/sqlite-3.40.0/ext/userauth/
H A Duserauth.c169 zOut = sqlite3_malloc( nIn+sizeof(zSalt) ); in sqlite3CryptFunc()
207 db->auth.zAuthPW = sqlite3_malloc( nPW+1 ); in sqlite3_user_authenticate()

12345