Skip to content
Permalink
Browse files

https://github.com//issues/354

  • Loading branch information...
Cristy
Cristy committed Jan 12, 2017
1 parent c9da43d commit 6235f1f7a9f7b0f83b197f6cd0073dbb6602d0fb
Showing with 3 additions and 3 deletions.
  1. +3 −3 magick/profile.c
@@ -2071,10 +2071,10 @@ static MagickBooleanType SyncExifProfile(Image *image, StringInfo *profile)
The directory entry contains an offset.
*/
offset=(ssize_t) ReadProfileLong(endian,q+8);
if ((ssize_t) (offset+number_bytes) < offset)
continue; /* prevent overflow */
if ((size_t) (offset+number_bytes) > length)
if ((offset < 0) || ((size_t) (offset+number_bytes) > length))
continue;
if (~length < number_bytes)
continue; /* prevent overflow */
p=(unsigned char *) (exif+offset);
}
switch (tag_value)

0 comments on commit 6235f1f

Please sign in to comment.
You can’t perform that action at this time.