From: yangguo@chromium.org Date: Wed, 6 Jun 2012 08:37:34 +0000 (+0000) Subject: Fix assertion in the debug agent. X-Git-Tag: upstream/4.7.83~16603 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8728847c2f37e35bca356b532bc19054735d3078;p=platform%2Fupstream%2Fv8.git Fix assertion in the debug agent. Patch by Chris Taylor . R=yangguo@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10543018 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11722 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/debug-agent.cc b/src/debug-agent.cc index 12c8931..e856222 100644 --- a/src/debug-agent.cc +++ b/src/debug-agent.cc @@ -399,7 +399,7 @@ bool DebuggerAgentUtil::SendMessage(const Socket* conn, uint16_t character = message[i]; buffer_position += unibrow::Utf8::Encode(buffer + buffer_position, character, previous); - ASSERT(buffer_position < kBufferSize); + ASSERT(buffer_position <= kBufferSize); // Send buffer if full or last character is encoded. if (kBufferSize - buffer_position <