aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/NEGEMMMatrixAccumulateBiasesKernel.cpp
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-08-07 16:49:49 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commitd6253602ec7ebcbe6adb0acc51a97a5d8c167495 (patch)
tree7031598ee38ca2fe0e61b499c0e5371e17166311 /src/core/NEON/kernels/NEGEMMMatrixAccumulateBiasesKernel.cpp
parentd9769583c44d8ad79e7fcf662715b2460e96084b (diff)
downloadComputeLibrary-d6253602ec7ebcbe6adb0acc51a97a5d8c167495.tar.gz
COMPMID-417: Fix invalid read in GEMM
Change-Id: Ia817dc4415197c310e7e9f9717ce9679294ddfcf Reviewed-on: http://mpd-gerrit.cambridge.arm.com/83109 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'src/core/NEON/kernels/NEGEMMMatrixAccumulateBiasesKernel.cpp')
-rw-r--r--src/core/NEON/kernels/NEGEMMMatrixAccumulateBiasesKernel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/NEON/kernels/NEGEMMMatrixAccumulateBiasesKernel.cpp b/src/core/NEON/kernels/NEGEMMMatrixAccumulateBiasesKernel.cpp
index f3d06ed481..a4fc494f16 100644
--- a/src/core/NEON/kernels/NEGEMMMatrixAccumulateBiasesKernel.cpp
+++ b/src/core/NEON/kernels/NEGEMMMatrixAccumulateBiasesKernel.cpp
@@ -58,11 +58,9 @@ void NEGEMMMatrixAccumulateBiasesKernel::configure(ITensor *accum, const ITensor
// Configure kernel window
Window win = calculate_max_window(*accum->info(), Steps(num_elems_processed_per_iteration));
- AccessWindowStatic biases_access(biases->info(), 0, 0, biases->info()->dimension(0), biases->info()->dimension(1));
-
update_window_and_padding(win,
AccessWindowHorizontal(accum->info(), 0, num_elems_processed_per_iteration),
- biases_access);
+ AccessWindowStatic(biases->info(), 0, 0, win.x().end(), biases->info()->tensor_shape().y()));
AccessWindowHorizontal output_access(accum->info(), 0, num_elems_processed_per_iteration);