Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 192727 Details for
Bug 270867
sqlite-3.6.14.2 can generate bus errors, apparently a regression from 3.6.13
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sqlite-3.6.14.2-fix_alignment.patch
sqlite-3.6.14.2-fix_alignment.patch (text/plain), 870 bytes, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2009-05-28 15:37:51 UTC
(
hide
)
Description:
sqlite-3.6.14.2-fix_alignment.patch
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2009-05-28 15:37:51 UTC
Size:
870 bytes
patch
obsolete
>--- src/rowset.c >+++ src/rowset.c >@@ -60,7 +60,7 @@ > ** There is an added cost of O(N) when switching between TEST and > ** SMALLEST primitives. > ** >-** $Id: rowset.c,v 1.6 2009/04/22 15:32:59 drh Exp $ >+** $Id: rowset.c,v 1.7 2009/05/22 01:00:13 drh Exp $ > */ > #include "sqliteInt.h" > >@@ -127,15 +127,15 @@ > */ > RowSet *sqlite3RowSetInit(sqlite3 *db, void *pSpace, unsigned int N){ > RowSet *p; >- assert( N >= sizeof(*p) ); >+ assert( N >= ROUND8(sizeof(*p)) ); > p = pSpace; > p->pChunk = 0; > p->db = db; > p->pEntry = 0; > p->pLast = 0; > p->pTree = 0; >- p->pFresh = (struct RowSetEntry*)&p[1]; >- p->nFresh = (u16)((N - sizeof(*p))/sizeof(struct RowSetEntry)); >+ p->pFresh = (struct RowSetEntry*)(ROUND8(sizeof(*p)) + (char*)p); >+ p->nFresh = (u16)((N - ROUND8(sizeof(*p)))/sizeof(struct RowSetEntry)); > p->isSorted = 1; > p->iBatch = 0; > return p;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 270867
: 192727