From 98b856c64c61bbdbe617966b5b2997046c57464d Mon Sep 17 00:00:00 2001 From: David Medina Date: Wed, 20 Jan 2021 18:42:47 -0500 Subject: [PATCH] [Examples] Fix out-of-bounds access (#469) --- examples/cpp/05_arrays/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cpp/05_arrays/main.cpp b/examples/cpp/05_arrays/main.cpp index eb455560f..917a26885 100644 --- a/examples/cpp/05_arrays/main.cpp +++ b/examples/cpp/05_arrays/main.cpp @@ -30,8 +30,8 @@ int main(int argc, const char **argv) { } // Uses the background device - occa::array array_a(10); - occa::array array_b(10); + occa::array array_a(entries); + occa::array array_b(entries); // Copy over host data array_a.copyFrom(a);