/ Check-in [78df3d04]
Login

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

Overview
Comment:Fix segfault due to exception handler being run with uninitialised variable. (CVS 2426)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:78df3d040443414ae5b440eeabc0c8c205ab311d
User & Date: danielk1977 2005-03-29 02:54:03
Context
2005-03-29
03:10
Add the SQLITE_OMIT_TEMPDB compile time macro. (CVS 2427) check-in: c41d5544 user: danielk1977 tags: trunk
02:54
Fix segfault due to exception handler being run with uninitialised variable. (CVS 2426) check-in: 78df3d04 user: danielk1977 tags: trunk
2005-03-28
18:04
Fix another memory leak in the pager. (CVS 2425) check-in: 4ca11ca0 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

     5      5   ** a legal notice, here is a blessing:
     6      6   **
     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12         -** $Id: btree.c,v 1.254 2005/03/28 08:44:07 danielk1977 Exp $
           12  +** $Id: btree.c,v 1.255 2005/03/29 02:54:03 danielk1977 Exp $
    13     13   **
    14     14   ** This file implements a external (disk-based) database using BTrees.
    15     15   ** For a detailed discussion of BTrees, refer to
    16     16   **
    17     17   **     Donald E. Knuth, THE ART OF COMPUTER PROGRAMMING, Volume 3:
    18     18   **     "Sorting And Searching", pages 473-480. Addison-Wesley
    19     19   **     Publishing Company, Reading, Massachusetts.
................................................................................
  3777   3777     MemPage *apCopy[NB];         /* Private copies of apOld[] pages */
  3778   3778     MemPage *apNew[NB+2];        /* pPage and up to NB siblings after balancing */
  3779   3779     Pgno pgnoNew[NB+2];          /* Page numbers for each page in apNew[] */
  3780   3780     int idxDiv[NB];              /* Indices of divider cells in pParent */
  3781   3781     u8 *apDiv[NB];               /* Divider cells in pParent */
  3782   3782     int cntNew[NB+2];            /* Index in aCell[] of cell after i-th page */
  3783   3783     int szNew[NB+2];             /* Combined size of cells place on i-th page */
  3784         -  u8 **apCell;                 /* All cells begin balanced */
         3784  +  u8 **apCell = 0;             /* All cells begin balanced */
  3785   3785     int *szCell;                 /* Local size of all cells in apCell[] */
  3786   3786     u8 *aCopy[NB];               /* Space for holding data of apCopy[] */
  3787   3787     u8 *aSpace;                  /* Space to hold copies of dividers cells */
  3788   3788   #ifndef SQLITE_OMIT_AUTOVACUUM
  3789   3789     u8 *aFrom = 0;
  3790   3790   #endif
  3791   3791