aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2021-05-13 13:35:30 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2021-05-13 15:00:24 +0000
commit7f8caf770417574a874d53733718f1b7052456fe (patch)
tree55dd025efb62a0b8692af7f40dea81870a5b7f99 /src/core/CL
parente57e11d66b8f1e49eff180bc65f877bf88c4c4cf (diff)
downloadComputeLibrary-7f8caf770417574a874d53733718f1b7052456fe.tar.gz
Fix integer overflow and null dereference
Resolves: COMPMID-4527 Change-Id: If038d2477d8898d3ee307fe58301fb0b16b64c02 Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5640 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL')
-rw-r--r--src/core/CL/kernels/CLInstanceNormalizationLayerKernel.cpp4
1 files changed, 2 insertions, 2 deletions
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));