summaryrefslogtreecommitdiff
blob: eecf7e37151bfe2fb9de979cd41f1f984d0897a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: libexif-0.6.16/libexif/exif-loader.c
===================================================================
--- libexif-0.6.16.orig/libexif/exif-loader.c
+++ libexif-0.6.16/libexif/exif-loader.c
@@ -176,6 +176,8 @@ exif_loader_write (ExifLoader *eld, unsi
 		break;
 	}
 
+	if (!len)
+		return 1;
 	exif_log (eld->log, EXIF_LOG_CODE_DEBUG, "ExifLoader",
 		  "Scanning %i byte(s) of data...", len);