From 4747b8276dd9bab6e015632782488493bf801655 Mon Sep 17 00:00:00 2001 From: berryplus Date: Sat, 12 Jan 2019 22:56:35 +0900 Subject: [PATCH] =?UTF-8?q?assert=E6=9D=A1=E4=BB=B6=E3=81=AE=E8=AA=A4?= =?UTF-8?q?=E3=82=8A=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sakura_core/util/string_ex.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sakura_core/util/string_ex.cpp b/sakura_core/util/string_ex.cpp index ff20aaf6ce..27e2f783a1 100644 --- a/sakura_core/util/string_ex.cpp +++ b/sakura_core/util/string_ex.cpp @@ -1086,8 +1086,7 @@ BOOL IsMailAddress( const wchar_t* pszBuf, int nBufLen, int* pnAddressLength ) // IsMailAddressDomainがtrueを返したら、以下は必ず成立する assert(pszEndOfMailBox != nullptr); - assert(pszEndOfMailBox > pszAtmark + 1); - assert(pszEndOfMailBox < pszBuf + MAX_MAILBOX + 1); + assert(pszAtmark < pszEndOfMailBox); // メールアドレス全体の長さを再度チェックする if (pszBuf + MAX_MAILBOX < pszEndOfMailBox) {