/ Check-in [641408a1]
Login

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

Overview
Comment:Avoid a possible use of an uninitialized variable following an I/O or OOM error.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 641408a1395bfc911ca619ef9e5f073b913d856b
User & Date: drh 2014-03-23 16:29:23
Context
2014-03-24
11:23
Avoid attempting to mmap memory from an offset that is not a multiple of the system page size on systems with page sizes larger than 32KB. check-in: db7d62c8 user: dan tags: trunk
2014-03-23
18:47
merge fixes from trunk check-in: faf7f9ca user: drh tags: orderby-planning
16:29
Avoid a possible use of an uninitialized variable following an I/O or OOM error. check-in: 641408a1 user: drh tags: trunk
2014-03-22
02:19
Clear the sort-order flags on the KeyInfo object associated with the OP_Compare/OP_Jump of the block-sort logic, in order to make the OP_Jump fully testable. check-in: 9b2838f2 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbe.c.

  4510   4510   */
  4511   4511   case OP_SorterNext: {  /* jump */
  4512   4512     VdbeCursor *pC;
  4513   4513     int res;
  4514   4514   
  4515   4515     pC = p->apCsr[pOp->p1];
  4516   4516     assert( isSorter(pC) );
         4517  +  res = 0;
  4517   4518     rc = sqlite3VdbeSorterNext(db, pC, &res);
  4518   4519     goto next_tail;
  4519   4520   case OP_PrevIfOpen:    /* jump */
  4520   4521   case OP_NextIfOpen:    /* jump */
  4521   4522     if( p->apCsr[pOp->p1]==0 ) break;
  4522   4523     /* Fall through */
  4523   4524   case OP_Prev:          /* jump */