1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix a OOM segfault in the BETWEEN operator parsing - discovered while

using SQLITE_OMIT_LOOKASIDE. Add SQLITE_OMIT_LOOKASIDE to test_config.c and
bypass lookaside.test when defined. (CVS 5803)

FossilOrigin-Name: 2a21d52c651ba113c472b6686dcf8ba009924305
This commit is contained in:
drh
2008-10-11 17:06:04 +00:00
parent 435f29d6eb
commit 8867e38aab
5 changed files with 27 additions and 14 deletions

View File

@@ -16,7 +16,7 @@
** The focus of this file is providing the TCL testing layer
** access to compile-time constants.
**
** $Id: test_config.c,v 1.40 2008/10/10 23:48:26 drh Exp $
** $Id: test_config.c,v 1.41 2008/10/11 17:06:04 drh Exp $
*/
#include "sqliteLimit.h"
@@ -309,6 +309,12 @@ static void set_options(Tcl_Interp *interp){
Tcl_SetVar2(interp, "sqlite_options", "localtime", "1", TCL_GLOBAL_ONLY);
#endif
#ifdef SQLITE_OMIT_LOOKASIDE
Tcl_SetVar2(interp, "sqlite_options", "lookaside", "0", TCL_GLOBAL_ONLY);
#else
Tcl_SetVar2(interp, "sqlite_options", "lookaside", "1", TCL_GLOBAL_ONLY);
#endif
Tcl_SetVar2(interp, "sqlite_options", "long_double",
sizeof(LONGDOUBLE_TYPE)>sizeof(double) ? "1" : "0",
TCL_GLOBAL_ONLY);