Patch from Fredrik <fredrik@krixor.xy.org>:
* libexif/exif-data.c: Better checks for size.
+2002-02-17 Lutz Müller <lutz@users.sourceforge.net>
+
+ Patch from Fredrik <fredrik@krixor.xy.org>:
+
+ * libexif/exif-data.c: Better checks for size.
+
2002-02-13 Lutz Müller <lutz@users.sourceforge.net>
* libexif/configure.in: Introduce proper versionning.
if (size < 6) {
#ifdef DEBUG
printf ("Size too small.\n");
- return;
#endif
+ return;
}
if (!memcmp (d, ExifHeader, 6)) {
#ifdef DEBUG
if (size < 6) {
#ifdef DEBUG
printf ("Size too small.\n");
- return;
#endif
+ return;
}
if (memcmp (d, ExifHeader, 6)) {
#ifdef DEBUG
printf ("EXIF header not found.\n");
- return;
#endif
+ return;
}
#ifdef DEBUG