From 17de62e9cb624b74377c6a80c0f9aff75f15dcd6 Mon Sep 17 00:00:00 2001 From: Kevin May Date: Mon, 31 Jul 2023 12:16:04 +0100 Subject: IVGCVSW-7787 Fix READ memory access caused by missing printf arguments Signed-off-by: Kevin May Change-Id: Ibea856e1420ad3ff14aef2cdb3d8ee918fb1bcf1 --- 1.0/HalPolicy.cpp | 2 +- ConversionUtils.hpp | 2 +- ConversionUtils_1_2.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/1.0/HalPolicy.cpp b/1.0/HalPolicy.cpp index 08de1b52..ce578181 100644 --- a/1.0/HalPolicy.cpp +++ b/1.0/HalPolicy.cpp @@ -615,7 +615,7 @@ bool HalPolicy::ConvertSpaceToDepth(const Operation& operation, const Model& mod if (desc.m_BlockSize <= 1) { - return Fail("%s: Block size must be at least 1 in all dimensions"); + return Fail("%s: Block size must be at least 1 in all dimensions", __func__); } const Operand* output = GetOutputOperand(operation, 0, model); diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp index 78e0e205..2e3a0424 100644 --- a/ConversionUtils.hpp +++ b/ConversionUtils.hpp @@ -2511,7 +2511,7 @@ bool ConvertDepthToSpace(const HalOperation& operation, const HalModel& model, C GetInputScalar(operation, 1, HalOperandType::INT32, descriptor.m_BlockSize, model, data); if (descriptor.m_BlockSize <= 1) { - return Fail("%s: Block size must be at least 1 in all dimensions"); + return Fail("%s: Block size must be at least 1 in all dimensions", __func__); } descriptor.m_DataLayout = armnn::DataLayout::NHWC; diff --git a/ConversionUtils_1_2.hpp b/ConversionUtils_1_2.hpp index 5b38b075..670463f4 100644 --- a/ConversionUtils_1_2.hpp +++ b/ConversionUtils_1_2.hpp @@ -2324,7 +2324,7 @@ bool ConvertSpaceToDepth(const HalOperation& operation, const HalModel& model, C if (desc.m_BlockSize <= 1) { - return Fail("%s: Block size must be at least 1 in all dimensions"); + return Fail("%s: Block size must be at least 1 in all dimensions", __func__); } desc.m_DataLayout = OptionalDataLayout(operation, 2, model, data); -- cgit v1.2.1