From 5ae9b694e5d154a2ab3ec0d448394eb5de49368e Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 5 Feb 2018 14:59:54 +0000 Subject: COMPMID-885 Valgrind NEConvolutionSquare::configure relies on uninitialised values Change-Id: I7a9a694064db8a92b2f8d4ea46e42070da6ed15a Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/118904 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- tests/validation/fixtures/ConvolutionFixture.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/validation/fixtures') diff --git a/tests/validation/fixtures/ConvolutionFixture.h b/tests/validation/fixtures/ConvolutionFixture.h index 4d0d7a2a6f..8ebb924c65 100644 --- a/tests/validation/fixtures/ConvolutionFixture.h +++ b/tests/validation/fixtures/ConvolutionFixture.h @@ -59,22 +59,22 @@ protected: ARM_COMPUTE_ERROR_ON(3 != width && 5 != width && 7 != width && 9 != width); ARM_COMPUTE_ERROR_ON(3 != height && 5 != height && 7 != height && 9 != height); - int16_t conv[width * height]; + std::vector conv(width * height); _width = width; _height = height; if(is_separable) { - create_separable_conv(conv); + create_separable_conv(conv.data()); } else { - create_conv(conv); + create_conv(conv.data()); } - _target = compute_target(shape, output_data_type, conv, scale, border_mode, constant_border_value); - _reference = compute_reference(shape, output_data_type, conv, scale, border_mode, constant_border_value); + _target = compute_target(shape, output_data_type, conv.data(), scale, border_mode, constant_border_value); + _reference = compute_reference(shape, output_data_type, conv.data(), scale, border_mode, constant_border_value); } void -- cgit v1.2.1