2004-04-04 Lutz Mueller lutz@users.sourceforge.net
authorLutz Mueller <lutz.s.mueller@gmail.com>
Sun, 4 Apr 2004 09:01:01 +0000 (11:01 +0200)
committerLutz Mueller <lutz.s.mueller@gmail.com>
Sun, 4 Apr 2004 09:01:01 +0000 (11:01 +0200)
* libexif/exif-data.c: If we don't know a tag we are going to parse,
  stop loading. This should fix bug #138238.

ChangeLog
libexif/exif-data.c

index 403dacc..33b9570 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-04  Lutz Mueller lutz@users.sourceforge.net
+
+       * libexif/exif-data.c: If we don't know a tag we are going to parse,
+         stop loading. This should fix bug #138238.
+
 2004-04-02  Jan Patera <patera@users.sourceforge.net>
 
        * libexif/pentax/exif-mnote-data-pentax.c: correct search for values
index 46bb5b4..d66c90d 100644 (file)
@@ -287,6 +287,12 @@ exif_data_load_data_content (ExifData *data, ExifContent *ifd,
                        }
                        break;
                default:
+
+                       /*
+                        * If we don't know the tag, changes are high
+                        * that the EXIF data does not follow the standard.
+                        */
+                       if (!exif_tag_get_name (tag)) return;
                        entry = exif_entry_new ();
                        exif_content_add_entry (ifd, entry);
                        exif_data_load_data_entry (data, entry, d, ds,