From 293fc4d41d13d6f910507db9291c8ac0472093c1 Mon Sep 17 00:00:00 2001 From: sdottaka Date: Sun, 20 Sep 2015 12:54:03 +0900 Subject: [PATCH] unicoder.cpp: Remove needless code --- Src/Common/unicoder.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Src/Common/unicoder.cpp b/Src/Common/unicoder.cpp index 62abcdeae..0526ec7e9 100644 --- a/Src/Common/unicoder.cpp +++ b/Src/Common/unicoder.cpp @@ -1141,8 +1141,6 @@ bool CheckForInvalidUtf8(const char *pBuffer, size_t size) return false; pVal2 = (unsigned char *)pBuffer; bool bUTF8 = false; - if (size < 3) - return false; for (size_t i = 0; i < (size - 3); ++i) { if ((*pVal2 & 0x80) == 0x00) -- 2.11.0