debian-bugs-dist.lists.debian.org
[Top] [All Lists]

Bug#274198: problem is libexif10

Subject: Bug#274198: problem is libexif10
From: Rutger Bezema
Date: Thu, 30 Sep 2004 19:59:41 +0200
Package: exif
Version: 0.6.9-1
Followup-For: Bug #274198

The segmentationfault happens in libexif10.
the problem is the call (in the file exif-data.c)
exif_entry_get_value (em, value, sizeof(value)) which returns 0 which
cannot be strcmp -ied.
a (not very beautifull) patch would be

diff -ur original/libexif/exif-data.c libexif-0.6.9/libexif/exif-data.c
--- original/libexif/exif-data.c    2004-09-30 16:14:51.000000000 +0200
+++ libexif-0.6.9/libexif/exif-data.c    2004-09-30 16:15:53.000000000 +0200
@@ -698,9 +698,9 @@
            } else {
                /* Canon */
                if (em) {
- - if (!strcmp (exif_entry_get_value (em, value, sizeof(value)), "Canon"))
-                        data->priv->md = exif_mnote_data_canon_new ();
+ if (exif_entry_get_value (em, value, sizeof(value))) + if (!strcmp (exif_entry_get_value (em, value, sizeof(value)), "Canon")) + data->priv->md = exif_mnote_data_canon_new ();
                }
            }
        }


-- System Information:
Debian Release: 3.1
 APT prefers testing
 APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-k7
Locale: LANG=de_DE, LC_CTYPE=de_DE (ignored: LC_ALL set to de_DE@euro)

Versions of packages exif depends on:
ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an ii libexif10 0.6.9-1 The EXIF library allows you to par ii libpopt0 1.7-4 lib for parsing cmdline parameters

-- no debconf information

--
      \|||/
      (o o)
----ooO-(_)-Ooo--------
Rutger Bezema
email: rbezema@xxxxxxxxxxx
tel: +49 (0)228 9659629



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#274198: problem is libexif10, Rutger Bezema <=
Privacy Policy