From 135ae12b0db73e25b4b8f4eac6bb897bb6318f50 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Wed, 9 Sep 2020 14:31:12 +0300 Subject: [PATCH] Fixed AddressSanitizer issue (#2122) --- ngraph/core/src/op/variadic_split.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ngraph/core/src/op/variadic_split.cpp b/ngraph/core/src/op/variadic_split.cpp index 1279f2e..c010eabf 100644 --- a/ngraph/core/src/op/variadic_split.cpp +++ b/ngraph/core/src/op/variadic_split.cpp @@ -245,7 +245,8 @@ namespace output->set_shape(output_shape); evaluate(data_tensor, output, lower_bounds, upper_bounds); lower_bounds.at(axis) = upper_bounds.at(axis); - upper_bounds.at(axis) += split_lengths[split_pos]; + if (split_pos < split_lengths.size()) + upper_bounds.at(axis) += split_lengths[split_pos]; } return true; -- 2.7.4