-C Fix\sa\sbug\sin\sthe\sOP_MemStore\soperator\sof\sthe\sVDBE.\s\sA\srealloc()\smight\noccur\sbut\spointer\sto\sthe\sold\sbuffer\swere\snot\sbeing\smoved\sover\sto\nthe\snew\sbuffer.\s(CVS\s752)
-D 2002-09-17T03:20:46
+C Make\ssure\smemory\smalloced()\sfor\sstructures\sis\saligned\son\san\seven\sbyte\sboundry.\nSolaris\ssegfaults\sotherwise.\s(CVS\s753)
+D 2002-09-21T15:57:57
F Makefile.in d6c9a85c2a5e696843201d090dcf8bf2f8716f2a
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
F sqlite.1 83f4a9d37bdf2b7ef079a82d54eaf2e3509ee6ea
F src/btree.c 8024b87635c2adf133f153f1bb595125ec1c7d7b
F src/btree.h 0ca6c2631338df62e4f7894252d9347ae234eda9
-F src/build.c d41b8da6b52ff84b235a785b226c37f3090ed276
+F src/build.c 84f397a61b5bfcc1140fd41b9f8c5bda364dfea5
F src/delete.c aad9d4051ab46e6f6391ea5f7b8994a7c05bdd15
F src/encode.c 6c9c87d5b7b2c0101d011ebc283a80abf672a4d1
F src/expr.c e1327eb020a68ff7c49382e121ad4b71b3441b2a
F www/sqlite.tcl ae3dcfb077e53833b59d4fcc94d8a12c50a44098
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
-P f12c3a25ba5408c2a7c846a9f160416fd188cd26
-R 3c4e79bd5ec6ce7d63d34d010c5a09db
+P 29145746f34438bd830c763872c5e82572150357
+R 5d4b302464bafa2bfba8710f952a6108
U drh
-Z c5560c2e0285ec66000e64e43f75e92e
+Z dc6c63618e264b41d89885961d5df42f
** ROLLBACK
** PRAGMA
**
-** $Id: build.c,v 1.112 2002/09/14 13:47:32 drh Exp $
+** $Id: build.c,v 1.113 2002/09/21 15:57:57 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
if( pFKey==0 ) goto fk_end;
pFKey->pFrom = p;
pFKey->pNextFrom = p->pFKey;
- pFKey->zTo = z = (char*)&pFKey[1];
+ z = (char*)&pFKey[1];
+ pFKey->aCol = (struct sColMap*)z;
+ z += sizeof(struct sColMap)*nCol;
+ pFKey->zTo = z;
memcpy(z, pTo->z, pTo->n);
z[pTo->n] = 0;
z += pTo->n+1;
pFKey->pNextTo = 0;
pFKey->nCol = nCol;
- pFKey->aCol = (struct sColMap*)z;
- z += sizeof(struct sColMap)*nCol;
if( pFromCol==0 ){
pFKey->aCol[0].iFrom = p->nCol-1;
}else{