Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 202350 | Differences between
and this patch

Collapse All | Expand All

(-)libexif-0.6.16/libexif/exif-data.c (-3 / +2 lines)
Lines 288-297 static void Link Here
288
exif_data_load_data_thumbnail (ExifData *data, const unsigned char *d,
288
exif_data_load_data_thumbnail (ExifData *data, const unsigned char *d,
289
			       unsigned int ds, ExifLong offset, ExifLong size)
289
			       unsigned int ds, ExifLong offset, ExifLong size)
290
{
290
{
291
	if (ds < offset + size) {
291
	if ((ds < offset + size) || (offset < 0) || (offset > ds)) {
292
		exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, "ExifData",
292
		exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, "ExifData",
293
			  "Bogus thumbnail offset and size: %i < %i + %i.",
293
			  "Bogus thumbnail offset and size.");
294
			  (int) ds, (int) offset, (int) size);
295
		return;
294
		return;
296
	}
295
	}
297
	if (data->data) 
296
	if (data->data) 

Return to bug 202350