From 2711e2810edf4475af0207f127892e6a513de099 Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Mon, 15 Nov 2004 08:09:56 +0100 Subject: [PATCH] 2004-11-15 Lutz Mueller * libexif/exif-data.c: Additional debugging message if specification is violated. --- ChangeLog | 5 +++++ libexif/exif-data.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index ce8290e..38b172e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-15 Lutz Mueller + + * libexif/exif-data.c: Additional debugging message if + specification is violated. + 2004-11-14 Lutz Mueller * libexif/*: Plug another few memleaks. All found by Angala Wrobel. diff --git a/libexif/exif-data.c b/libexif/exif-data.c index 7f29dee..497e3fd 100644 --- a/libexif/exif-data.c +++ b/libexif/exif-data.c @@ -265,6 +265,14 @@ if (data->ifd[(i)] == ifd) { \ "'%s' detected. Skipping...", \ exif_ifd_get_name (i)); \ break; \ +} \ +if (data->ifd[(i)]->count) { \ + exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, \ + "ExifData", "Attemt to load IFD " \ + "'%s' multiple times detected. " \ + "Skipping...", \ + exif_ifd_get_name (i)); \ + break; \ } static void -- 2.7.4