--- imlib2-1.2.2-64/src/modules/loaders/loader_tiff.c.22355 2006-07-14 08:35:06.000000000 -0400 +++ imlib2-1.2.2-64/src/modules/loaders/loader_tiff.c 2006-07-21 11:22:54.000000000 -0400 @@ -91,7 +91,18 @@ /* I don't understand why, but that seems to be what's going on. */ /* libtiff needs better docs! */ - for (i = y, rast_offset = 0; i > dy; i--, rast_offset--) + rast_offset = 0; + + /* (sb) on x86_64 the behavior is different yet + * was crashing - http://qa.mandriva.com/show_bug.cgi?id=22355 + * probably a better way to fix this but it works for a sampling + * of local images */ +#if defined(__x86_64__) + rast -= image_width * h; + rast_offset = h; +#endif + + for (i = y; i > dy; i--, rast_offset--) { pixel = rast + (rast_offset * image_width); buffer_pixel = buffer + ((((image_height - 1) - i) * image_width) + x);