From 241cb95f8bfabafd7071d07137650cdb3b7445be Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 8 Jun 2017 08:27:01 +0400 Subject: [PATCH] (CfiDecryptor): null argument check. --- ArcFormats/Malie/MalieEncryption.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArcFormats/Malie/MalieEncryption.cs b/ArcFormats/Malie/MalieEncryption.cs index 7c339fe6..8b003896 100644 --- a/ArcFormats/Malie/MalieEncryption.cs +++ b/ArcFormats/Malie/MalieEncryption.cs @@ -61,6 +61,8 @@ namespace GameRes.Formats.Malie public void DecryptBlock (long block_offset, byte[] data, int index) { + if (null == data) + throw new ArgumentNullException ("data"); if (index < 0 || index + 0x10 > data.Length) throw new ArgumentOutOfRangeException ("index"); int offset = (int)block_offset;