Reviewers: Michael Achenbach,
Message:
machenbach, ptal
Description:
Fix test-parsing/TooManyArguments.
(Asan.)
[email protected]
BUG=
Please review this at https://codereview.chromium.org/199213002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+2, -1 lines):
M test/cctest/test-parsing.cc
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index
82cce5985849ca08fe14a0ba9c7bf351c3b50f98..62314ff5b14c87c41041474475c19cc518a00123
100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -2348,11 +2348,12 @@ TEST(TooManyArguments) {
};
using v8::internal::Code;
- char statement[Code::kMaxArguments * 2];
+ char statement[Code::kMaxArguments * 2 + 1];
for (int i = 0; i < Code::kMaxArguments; ++i) {
statement[2 * i] = '0';
statement[2 * i + 1] = ',';
}
+ statement[Code::kMaxArguments * 2] = 0;
const char* statement_data[] = {
statement,
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.