From 1219ab86a6ece2b35d7d2ee8e62bb035155a7226 Mon Sep 17 00:00:00 2001 From: Yongyan Liu Date: Wed, 26 Aug 2026 18:27:28 -0400 Subject: [PATCH] [tmva][sofie] Handle out-of-range dynamic shape values --- tmva/sofie/src/SOFIE_common.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmva/sofie/src/SOFIE_common.cxx b/tmva/sofie/src/SOFIE_common.cxx index 672d77048ef38..0290eab397ad8 100644 --- a/tmva/sofie/src/SOFIE_common.cxx +++ b/tmva/sofie/src/SOFIE_common.cxx @@ -43,6 +43,10 @@ std::vector ConvertShapeToInt(const std::vector & shape){ ret_shape.clear(); break; } + catch (const std::out_of_range& ) { + ret_shape.clear(); + break; + } } else { ret_shape[i] = shape[i].dim; }