Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Unassigned: Getting ArgumentOutOfRangeException while reading ExifProfile [1346]

$
0
0
I'm using the "Magick.NET-Q8-x64.7.0.0.0011" package and getting an ArgumentOutOfRangeException while reading ExifProfile.Values. The Message is:

> Number was less than the array's lower bound in the first dimension.
Parameter name: srcIndex

The stack trace is:

```
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
at ImageMagick.ExifReader.GetBytes(UInt32 length)
at ImageMagick.ExifReader.CreateValue()
at ImageMagick.ExifReader.AddValues(List`1 values, UInt32 index)
at ImageMagick.ExifReader.GetThumbnail(UInt32 offset)
at ImageMagick.ExifReader.Read(Byte[] data)
at ImageMagick.ExifProfile.Initialize()
at ImageMagick.ExifProfile.get_Values()
```

I'm guessing that part of the problem is that this._Index (in ExifReader.GetBytes) is set to 4294901766 when it blows up (length is 65535). Is this maybe a 64-bit issue? I'm going to see if I can test with the 32-bit version.

I'm also attaching the image that it's blowing up on.

Comments: The problem seems to be an invalid value in the exif profile. The data is stored big endian which results in an invalid offset for this value. I did not check the rest but that might also be invalud. Can you contact me through CodePlex so we can continue this conversation by e-mail and figure out a solution?

Viewing all articles
Browse latest Browse all 1011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>