Skip to content

Commit

Permalink
(PRS): limit decompressed block size.
Browse files Browse the repository at this point in the history
  • Loading branch information
morkt committed Mar 30, 2019
1 parent b35a80d commit 6566278
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ArcFormats/Marble/ImagePRS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public void Unpack ()
++shift;
if (dst < shift)
throw new InvalidFormatException ("Invalid offset value");
length = Math.Min (length, m_output.Length - dst);
Binary.CopyOverlapped (m_output, dst-shift, dst, length);
dst += length;
}
Expand Down

0 comments on commit 6566278

Please sign in to comment.