Module submission - libexif

bvali087@uottawa.ca bvali087 at uottawa.ca
Mon Oct 10 21:39:02 UTC 2005


module name       : libexif
suggested section : libs
update (y/n)      : n
bugfix (y/n)      : y
security (y/n)    : n


I've had problems with gimp to open jpeg produced by my digital
camera. Hanging around on google, I found my problem described 
here:

     https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=153282

It appears that there is a bug in libexif.

I've corrected the faulting file following the indications and
everything seems to be back to normal with gimp. So here is my
proposed correction.


Benoit Valiron

-------------- next part --------------
--- libexif/BUILD	1969-12-31 19:00:00.000000000 -0500
+++ libexif/BUILD	2005-10-10 17:30:32.000000000 -0400
@@ -0,0 +1,7 @@
+(
+  
+  patch -d libexif -p0 <  $SCRIPT_DIRECTORY/exif-data.c.diff
+
+  default_build
+
+) > $C_FIFO 2>&1
--- libexif/exif-data.c.diff	1969-12-31 19:00:00.000000000 -0500
+++ libexif/exif-data.c.diff	2005-10-10 17:20:19.000000000 -0400
@@ -0,0 +1,11 @@
+--- exif-data.c	2005-03-12 21:27:13.000000000 -0500
++++ exif-data.c.new	2005-10-10 17:15:56.000000000 -0400
+@@ -231,7 +231,7 @@
+ 		 * the offset must be an even number. If we need to introduce
+ 		 * a padding byte, we set it to 0.
+ 		 */
+-		if (s & 1) *ds++;
++		if (s & 1) (*ds)++;
+ 		*d = exif_mem_realloc (data->priv->mem, *d, *ds);
+ 		if (!*d) {
+ 			EXIF_LOG_NO_MEMORY (data->priv->log, "ExifData", *ds);
-------------- next part --------------
lvu submit libexif a55648a16dcf4e581522ac7377fb0333  -
2.6.13.1 2.6.12 gcc-3.4.4 glibc-2.3.5


More information about the Lunar mailing list