Revision: 19907
Author: [email protected]
Date: Thu Mar 13 15:55:38 2014 UTC
Log: Fix test-parsing/TooManyArguments.
(Asan.)
[email protected]
BUG=
Review URL: https://codereview.chromium.org/199213002
http://code.google.com/p/v8/source/detail?r=19907
Modified:
/branches/bleeding_edge/test/cctest/test-parsing.cc
=======================================
--- /branches/bleeding_edge/test/cctest/test-parsing.cc Thu Mar 13 11:56:13
2014 UTC
+++ /branches/bleeding_edge/test/cctest/test-parsing.cc Thu Mar 13 15:55:38
2014 UTC
@@ -2355,11 +2355,12 @@
};
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.