aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-09-09 17:27:35 +0000
committerdrh <drh@noemail.net>2014-09-09 17:27:35 +0000
commitda4ca9d19cf92628f4989d95185f3b1fa1418e6d (patch)
treeff652efb98ce0af06f15f3df0eedc12c8bdf92aa /src/func.c
parent524a733d89355f01eac235d926e97b5cd6836b98 (diff)
downloadsqlite-da4ca9d19cf92628f4989d95185f3b1fa1418e6d.tar.gz
sqlite-da4ca9d19cf92628f4989d95185f3b1fa1418e6d.zip
Add new APIs that take 64-bit length parameters:
sqlite3_malloc64(), sqlite3_realloc64(), sqlite3_bind_blob64(), sqlite3_bind_texte64(), sqlite3_result_blob64(), and sqlite3_result_texte64(). Internal memory allocation routines also now use 64-bit unsigned length parameters for safety. Also add the sqlite3_msize() interface. Fix the sqlite3_get_table() to use sqlite3_realloc64() to avoid a integer overflow problem. FossilOrigin-Name: 94954850cf2e1ec0b7f590c7f46cdc54c72558ce
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/func.c b/src/func.c
index e338ab842..eef16d3ca 100644
--- a/src/func.c
+++ b/src/func.c
@@ -390,7 +390,7 @@ static void *contextMalloc(sqlite3_context *context, i64 nByte){
sqlite3_result_error_toobig(context);
z = 0;
}else{
- z = sqlite3Malloc((int)nByte);
+ z = sqlite3Malloc(nByte);
if( !z ){
sqlite3_result_error_nomem(context);
}