From de547168f108ec1494f18b3ab1ea50bd09f370c1 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Wed, 8 Mar 2023 10:08:20 +0000 Subject: IVGCVSW-7404 Out of bounds detection * Added test to ensure that all inputs and outputs do not go out of bounds. Signed-off-by: Mike Kelly Change-Id: Ia97e85f71e46cd2203306243e4dcbc23e0f29ec1 --- Utils.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Utils.hpp') diff --git a/Utils.hpp b/Utils.hpp index 6e733a26..81be984c 100644 --- a/Utils.hpp +++ b/Utils.hpp @@ -1,5 +1,5 @@ // -// Copyright © 2017 Arm Ltd. All rights reserved. +// Copyright © 2017-2021,2023 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // @@ -11,6 +11,8 @@ #include #include +#include + #include #include #include @@ -194,4 +196,9 @@ inline V1_2::OutputShape ComputeShape(const armnn::TensorInfo& info) void CommitPools(std::vector<::android::nn::RunTimePoolInfo>& memPools); +template +ErrorStatus ValidateRequestArgument(const Request& request, + const armnn::TensorInfo& tensorInfo, + const V1_0::RequestArgument& requestArgument, + std::string descString); } // namespace armnn_driver -- cgit v1.2.1