Skip to content

Commit

Permalink
assert条件の誤りを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed Jan 12, 2019
1 parent b94161c commit 4747b82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sakura_core/util/string_ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4747b82

Please sign in to comment.