|
|
@ -172,10 +172,7 @@ namespace SixLabors.ImageSharp.Metadata.Profiles.Exif |
|
|
|
|
|
|
|
|
protected void ReadValues64(List<IExifValue> values, ulong offset) |
|
|
protected void ReadValues64(List<IExifValue> values, ulong offset) |
|
|
{ |
|
|
{ |
|
|
if (offset > (ulong)this.data.Length) |
|
|
DebugGuard.MustBeLessThanOrEqualTo(offset, (ulong)this.data.Length, "By spec UInt64.MaxValue is supported, but .Net Stream.Length can Int64.MaxValue."); |
|
|
{ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.Seek(offset); |
|
|
this.Seek(offset); |
|
|
ulong count = this.ReadUInt64(); |
|
|
ulong count = this.ReadUInt64(); |
|
|
|