1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Additional coverage testing. Fix a segfault following OOM in

sqltie3_load_extension(). (CVS 5523)

FossilOrigin-Name: f1e44eb323f05495cbae25113aebcc50d16b40df
This commit is contained in:
drh
2008-08-02 03:50:39 +00:00
parent c890fec362
commit 701bb3b4f0
22 changed files with 217 additions and 108 deletions

View File

@@ -12,7 +12,7 @@
** Code for testing all sorts of SQLite interfaces. This code
** implements new SQL functions used by the test scripts.
**
** $Id: test_func.c,v 1.9 2008/07/31 01:47:11 shane Exp $
** $Id: test_func.c,v 1.10 2008/08/02 03:50:39 drh Exp $
*/
#include "sqlite3.h"
#include "tcl.h"
@@ -308,7 +308,8 @@ static int autoinstall_test_funcs(
int objc,
Tcl_Obj *CONST objv[]
){
sqlite3_auto_extension((void*)registerTestFunctions);
int rc = sqlite3_auto_extension((void*)registerTestFunctions);
Tcl_SetObjResult(interp, Tcl_NewIntObj(rc));
return TCL_OK;
}