Author: Aurelien Jarno <aurel32@debian.org>
Description: align blocks according to host requirements
 When aligning pointers, we need them to be aligned according to the host
 system requirements, not the I/O alignment in ICC files, to avoid SIGBUS.
Bug-Debian: http://bugs.debian.org/647220

Index: lcms2-2.2+git20110628/src/cmscgats.c
===================================================================
--- lcms2-2.2+git20110628.orig/src/cmscgats.c	2011-06-27 21:20:02.000000000 -0700
+++ lcms2-2.2+git20110628/src/cmscgats.c	2013-10-06 12:36:37.000000000 -0700
@@ -982,7 +982,7 @@
     cmsUInt32Number Free = it8 ->Allocator.BlockSize - it8 ->Allocator.Used;
     cmsUInt8Number* ptr;
 
-    size = _cmsALIGNLONG(size);
+    size = (size + (sizeof(void *) - 1)) & ~(sizeof(void *) - 1);
 
     if (size > Free) {
 
