Hi,
This patch appears necessary to fix TIFF image loading on 64bit systems,
notably AMD64.
Reason is that the multiplication expands a negative integer (rast_offset)
to a uint32 due to image_width being uint32 and this offsets a 64bit pointer.
Ciao, Marcus
--- imlib2-1.2.1/src/modules/loaders/loader_tiff.c.xx 2006-11-07
16:36:48.000000000 +0100
+++ imlib2-1.2.1/src/modules/loaders/loader_tiff.c 2006-11-07
16:36:57.000000000 +0100
@@ -92,7 +92,7 @@
for (i = y, rast_offset = 0; i > dy; i--, rast_offset--)
{
- pixel = rast + (rast_offset * image_width);
+ pixel = rast + (rast_offset * (int)image_width);
buffer_pixel = buffer + ((((image_height - 1) - i) * image_width) + x);
for (j = 0; j < w; j++)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users