Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add the --max-stack option to dbfuzz2. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c11ae4fed89484f0a0061002861b5d59 |
User & Date: | drh 2019-01-20 00:03:59.818 |
Context
2019-01-21
| ||
13:47 | Add the --max-data and --max-as options to dbfuzz2. Also cause dbfuzz2 to show its maximum RSS size upon exit in standalone mode with the -v option. (check-in: 7ce93e824a user: drh tags: trunk) | |
2019-01-20
| ||
00:03 | Add the --max-stack option to dbfuzz2. (check-in: c11ae4fed8 user: drh tags: trunk) | |
2019-01-19
| ||
15:55 | Avoid a division-by-zero error in fts5 caused by a corrupt database. (check-in: 928e622178 user: dan tags: trunk) | |
Changes
Changes to test/dbfuzz2.c.
︙ | ︙ | |||
39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <ctype.h> #include <stdint.h> #include "sqlite3.h" /* ** This is the is the SQL that is run against the database. */ static const char *azSql[] = { "PRAGMA integrity_check;", | > > | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <ctype.h> #include <stdint.h> #include <sys/time.h> #include <sys/resource.h> #include "sqlite3.h" /* ** This is the is the SQL that is run against the database. */ static const char *azSql[] = { "PRAGMA integrity_check;", |
︙ | ︙ | |||
143 144 145 146 147 148 149 150 151 152 153 154 155 156 | if( z[0]=='v' && (n = numberOfVChar(z))>0 ){ eVerbosity += n; continue; } if( strcmp(z,"vdbe-debug")==0 ){ bVdbeDebug = 1; continue; } } argv[j++] = argv[i]; } argv[j] = 0; *pArgc = j; return 0; | > > > > > > > > > > > > > > > > > | 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | if( z[0]=='v' && (n = numberOfVChar(z))>0 ){ eVerbosity += n; continue; } if( strcmp(z,"vdbe-debug")==0 ){ bVdbeDebug = 1; continue; } if( strcmp(z,"max-stack")==0 ){ struct rlimit x,y; if( i+1==argc ){ fprintf(stderr, "missing argument to %s\n", argv[i]); exit(1); } memset(&x,0,sizeof(x)); getrlimit(RLIMIT_STACK, &x); y.rlim_cur = atoi(argv[++i]); y.rlim_max = x.rlim_cur; setrlimit(RLIMIT_STACK, &y); memset(&y,0,sizeof(y)); getrlimit(RLIMIT_STACK, &y); printf("Stack size limit changed from %d to %d\n", (int)x.rlim_cur, (int)y.rlim_cur); continue; } } argv[j++] = argv[i]; } argv[j] = 0; *pArgc = j; return 0; |
︙ | ︙ |