From 73348e83eaa9f5ae1d734d62dc11363574fa2265 Mon Sep 17 00:00:00 2001 From: "antonm@chromium.org" Date: Thu, 3 Feb 2011 13:30:22 +0000 Subject: [PATCH] Fix array boundary error. It made value of allowed_access_type[v8::ACCESS_KEYS] be a wild value. On most of platforms it was 0 and tests passed. But on ARM (and on ia32 if you alter test a bit) it could become true and hence allow enumeration of properties. Review URL: http://codereview.chromium.org/6334089 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6618 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc index 47016b113..a20185118 100644 --- a/test/cctest/test-api.cc +++ b/test/cctest/test-api.cc @@ -5309,7 +5309,7 @@ TEST(DetachAndReattachGlobal) { } -static bool allowed_access_type[v8::ACCESS_KEYS] = { false }; +static bool allowed_access_type[v8::ACCESS_KEYS + 1] = { false }; static bool NamedAccessBlocker(Local global, Local name, v8::AccessType type, -- 2.34.1