Hello community, here is the log from the commit of package tiff for openSUSE:12.2 checked in at 2012-06-29 10:24:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:12.2/tiff (Old) and /work/SRC/openSUSE:12.2/.tiff.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "tiff", Maintainer is "PGajdos@suse.com" Changes: -------- --- /work/SRC/openSUSE:12.2/tiff/tiff.changes 2012-06-25 15:55:55.000000000 +0200 +++ /work/SRC/openSUSE:12.2/.tiff.new/tiff.changes 2012-06-29 11:21:57.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Jun 28 10:16:29 UTC 2012 - meissner@suse.com + +- RGBA is packed in host order, use the right macros to unpack + and verify in raw_decode test. + +------------------------------------------------------------------- New: ---- tiff-bigendian.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tiff.spec ++++++ --- /var/tmp/diff_new_pack.4OUjnC/_old 2012-06-29 11:21:57.000000000 +0200 +++ /var/tmp/diff_new_pack.4OUjnC/_new 2012-06-29 11:21:57.000000000 +0200 @@ -49,6 +49,7 @@ Patch2: tiff-%{version}-seek.patch Patch3: tiff-%{version}-tiff2pdf-colors.patch Patch9: tiff-%{version}-dont-fancy-upsampling.patch +Patch10: tiff-bigendian.patch # FYI: this issue is solved another way # http://bugzilla.maptools.org/show_bug.cgi?id=1985#c1 # Patch9: tiff-%{version}-lzw-CVE-2009-2285.patch @@ -95,6 +96,7 @@ %patch2 -p1 %patch3 -p1 %patch9 -p1 +%patch10 -p1 %build %configure --disable-static --with-pic ++++++ tiff-bigendian.patch ++++++ --- tiff-4.0.2/test/raw_decode.c.xx 2012-06-28 11:48:43.000000000 +0200 +++ tiff-4.0.2/test/raw_decode.c 2012-06-28 12:15:46.000000000 +0200 @@ -85,9 +85,9 @@ static int check_rgba_pixel( int pixel, int red, int green, int blue, int alpha, unsigned char *buffer ) { /* RGBA images are upside down - adjust for normal ordering */ int adjusted_pixel = pixel % 128 + (127 - (pixel/128)) * 128; - unsigned char *rgba = buffer + 4 * adjusted_pixel; - - if( rgba[0] == red && rgba[1] == green && rgba[2] == blue && rgba[3] == alpha ) { + unsigned int *rgba = (unsigned int*)(buffer + 4 * adjusted_pixel); + + if( TIFFGetR(*rgba) == red && TIFFGetG(*rgba) == green && TIFFGetB(*rgba) == blue && TIFFGetA(*rgba) == alpha ) { return 0; } -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org