/ Check-in [85e53ff1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:If the string formatter in sqlite3NestedParse() fails due to an over-length string, make sure this error is recorded by the parser so that it knows to fail.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 85e53ff13300132250221de769a2aa7d92d81bb48d60f6e99000bc69a5b1e6fb
User & Date: drh 2019-03-28 04:03:17
Context
2019-03-28
13:03
Improved TreeView display of Window objects. Change the Window.eType field to Window.eFrmType to avoid confusion with other "eType" values. check-in: ec2f207d user: drh tags: trunk
04:03
If the string formatter in sqlite3NestedParse() fails due to an over-length string, make sure this error is recorded by the parser so that it knows to fail. check-in: 85e53ff1 user: drh tags: trunk
01:00
Improvements to the README.md file. No code changes. check-in: bbdbaf84 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

   260    260     zSql = sqlite3VMPrintf(db, zFormat, ap);
   261    261     va_end(ap);
   262    262     if( zSql==0 ){
   263    263       /* This can result either from an OOM or because the formatted string
   264    264       ** exceeds SQLITE_LIMIT_LENGTH.  In the latter case, we need to set
   265    265       ** an error */
   266    266       if( !db->mallocFailed ) pParse->rc = SQLITE_TOOBIG;
          267  +    pParse->nErr++;
   267    268       return;
   268    269     }
   269    270     pParse->nested++;
   270    271     memcpy(saveBuf, PARSE_TAIL(pParse), PARSE_TAIL_SZ);
   271    272     memset(PARSE_TAIL(pParse), 0, PARSE_TAIL_SZ);
   272    273     sqlite3RunParser(pParse, zSql, &zErrMsg);
   273    274     sqlite3DbFree(db, zErrMsg);