From 7f8caf770417574a874d53733718f1b7052456fe Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Thu, 13 May 2021 13:35:30 +0100 Subject: Fix integer overflow and null dereference Resolves: COMPMID-4527 Change-Id: If038d2477d8898d3ee307fe58301fb0b16b64c02 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5640 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- src/core/CL/kernels/CLInstanceNormalizationLayerKernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/CL') diff --git a/src/core/CL/kernels/CLInstanceNormalizationLayerKernel.cpp b/src/core/CL/kernels/CLInstanceNormalizationLayerKernel.cpp index dcde0850a7..323579dc3c 100644 --- a/src/core/CL/kernels/CLInstanceNormalizationLayerKernel.cpp +++ b/src/core/CL/kernels/CLInstanceNormalizationLayerKernel.cpp @@ -108,11 +108,11 @@ void CLComputeMeanVariance::configure(const CLCompileContext &compile_context, I // Output auto initialization if not yet initialized if(use_mixed_precision) { - auto_init_if_empty(*output->info(), out_shape, 1, DataType::F32); + auto_init_if_empty(*_output->info(), out_shape, 1, DataType::F32); } else { - auto_init_if_empty(*output->info(), out_shape, 1, input->info()->data_type()); + auto_init_if_empty(*_output->info(), out_shape, 1, input->info()->data_type()); } ICLKernel::configure_internal(win); ARM_COMPUTE_ERROR_ON(has_padding_changed(padding_info)); -- cgit v1.2.1