Update of /cvsroot/libexif/libexif/libexif
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18617/libexif
Modified Files:
exif-data.c
Log Message:
2004-04-04 Lutz Mueller lu...@us...
* libexif/exif-data.c: If we don't know a tag we are going to parse,
stop loading. This should fix bug #138238.
Index: exif-data.c
===================================================================
RCS file: /cvsroot/libexif/libexif/libexif/exif-data.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- exif-data.c 7 Jan 2004 15:12:11 -0000 1.35
+++ exif-data.c 4 Apr 2004 09:01:01 -0000 1.36
@@ -287,6 +287,12 @@
}
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,
|