Fossil

Check-in [b85b159b]
Login

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

Overview
Comment:Fix 96d3e99ffe59b528: Memory allocation bug. I saw crashes on 32-bit Linux (Ubuntu 14.04), so it's not only win32 which was affected by this bug.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b85b159beea6978677b2910118b7596848cd5809
User & Date: jan.nijtmans 2015-12-11 12:50:57
Context
2015-12-11
15:53
Remove incorrect documentation regarding cloning via SSH. Fossil does not touch passwords when SSH is used for cloning. check-in: 230fdcf6 user: andybradford tags: trunk
12:50
Fix 96d3e99ffe59b528: Memory allocation bug. I saw crashes on 32-bit Linux (Ubuntu 14.04), so it's not only win32 which was affected by this bug. check-in: b85b159b user: jan.nijtmans tags: trunk
2015-12-10
13:11
Improved documentation for cloning, including mentioning the use of %40 for "@" characters in the userid. check-in: b5354f19 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sqlite3.c.

68856
68857
68858
68859
68860
68861
68862

68863
68864
68865
68866
68867
68868
68869

  resolveP2Values(p, &nArg);
  p->usesStmtJournal = (u8)(pParse->isMultiWrite && pParse->mayAbort);
  if( pParse->explain && nMem<10 ){
    nMem = 10;
  }
  memset(zCsr, 0, nFree);

  zCsr += (zCsr - (u8*)0)&7;
  assert( EIGHT_BYTE_ALIGNMENT(zCsr) );
  p->expired = 0;

  /* Memory for registers, parameters, cursor, etc, is allocated in two
  ** passes.  On the first pass, we try to reuse unused space at the 
  ** end of the opcode array.  If we are unable to satisfy all memory







>







68856
68857
68858
68859
68860
68861
68862
68863
68864
68865
68866
68867
68868
68869
68870

  resolveP2Values(p, &nArg);
  p->usesStmtJournal = (u8)(pParse->isMultiWrite && pParse->mayAbort);
  if( pParse->explain && nMem<10 ){
    nMem = 10;
  }
  memset(zCsr, 0, nFree);
  nFree -= (zCsr - (u8*)0)&7;
  zCsr += (zCsr - (u8*)0)&7;
  assert( EIGHT_BYTE_ALIGNMENT(zCsr) );
  p->expired = 0;

  /* Memory for registers, parameters, cursor, etc, is allocated in two
  ** passes.  On the first pass, we try to reuse unused space at the 
  ** end of the opcode array.  If we are unable to satisfy all memory