Reviewers: Søren Gjesse, Description: This issue was introduced by http://codereview.chromium.org/67266
Please review this at http://codereview.chromium.org/93014 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/debug.cc Index: src/debug.cc =================================================================== --- src/debug.cc (revision 1765) +++ src/debug.cc (working copy) @@ -2213,8 +2213,9 @@ v8::Debug::ClientData* data) { Vector<uint16_t> text; if (!output.IsEmpty()) { - text = Vector<uint16_t>::New(output->Length() + 1); - output->Write(text.start()); + // Do not include trailing '\0'. + text = Vector<uint16_t>::New(output->Length()); + output->Write(text.start(), 0, output->Length()); } return Message(text, data, false); } --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
