public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-db/sqlite/files: sqlite-3.6.14.2-fix_alignment.patch
@ 2009-05-28 17:53 Arfrever Frehtes Taifersar Arahesis (arfrever)
  0 siblings, 0 replies; 3+ messages in thread
From: Arfrever Frehtes Taifersar Arahesis (arfrever) @ 2009-05-28 17:53 UTC (permalink / raw
  To: gentoo-commits

arfrever    09/05/28 17:53:24

  Added:                sqlite-3.6.14.2-fix_alignment.patch
  Log:
  Fix alignment (bug #270867).
  (Portage version: 13625-svn/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-db/sqlite/files/sqlite-3.6.14.2-fix_alignment.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/files/sqlite-3.6.14.2-fix_alignment.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/files/sqlite-3.6.14.2-fix_alignment.patch?rev=1.1&content-type=text/plain

Index: sqlite-3.6.14.2-fix_alignment.patch
===================================================================
--- 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: sqlite-3.6.14.2-fix_alignment.patch,v 1.1 2009/05/28 17:53:24 arfrever Exp $
+** $Id: sqlite-3.6.14.2-fix_alignment.patch,v 1.1 2009/05/28 17:53:24 arfrever 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;






^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-db/sqlite/files: sqlite-3.6.14.2-fix_alignment.patch
@ 2009-05-28 20:37 Ferris McCormick (fmccor)
  0 siblings, 0 replies; 3+ messages in thread
From: Ferris McCormick (fmccor) @ 2009-05-28 20:37 UTC (permalink / raw
  To: gentoo-commits

fmccor      09/05/28 20:37:25

  Removed:              sqlite-3.6.14.2-fix_alignment.patch
  Log:
  Re-add the patch without the header change.
  (Portage version: 2.2_rc33/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-db/sqlite/files: sqlite-3.6.14.2-fix_alignment.patch
@ 2009-05-28 20:38 Ferris McCormick (fmccor)
  0 siblings, 0 replies; 3+ messages in thread
From: Ferris McCormick (fmccor) @ 2009-05-28 20:38 UTC (permalink / raw
  To: gentoo-commits

fmccor      09/05/28 20:38:39

  Added:                sqlite-3.6.14.2-fix_alignment.patch
  Log:
  Re-add the patch without the header change.
  (Portage version: 2.2_rc33/cvs/Linux x86_64)

Revision  Changes    Path
1.3                  dev-db/sqlite/files/sqlite-3.6.14.2-fix_alignment.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/files/sqlite-3.6.14.2-fix_alignment.patch?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/files/sqlite-3.6.14.2-fix_alignment.patch?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/sqlite/files/sqlite-3.6.14.2-fix_alignment.patch?r1=1.2&r2=1.3







^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-28 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28 20:38 [gentoo-commits] gentoo-x86 commit in dev-db/sqlite/files: sqlite-3.6.14.2-fix_alignment.patch Ferris McCormick (fmccor)
  -- strict thread matches above, loose matches on Subject: below --
2009-05-28 20:37 Ferris McCormick (fmccor)
2009-05-28 17:53 Arfrever Frehtes Taifersar Arahesis (arfrever)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox