Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MetadataExtractor/Formats/Icc/IccDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ private enum IccTagType
{
var stringLength = reader.GetInt32(8);

if (stringLength < 0 || stringLength > bytes.Length)
if (stringLength < 0 || stringLength > bytes.Length - 12)
return null;

return Encoding.UTF8.GetString(bytes, 12, stringLength - 1);
return Encoding.UTF8.GetString(bytes, index: 12, count: stringLength - 1);
}

case IccTagType.Sig:
Expand Down
Loading