From 1a701394a2d840ebf09e5495917f1d706afd7d7c Mon Sep 17 00:00:00 2001 From: Simon Cornish <7t9jna402@sneakemail.com> Date: Wed, 1 May 2024 15:25:42 -0700 Subject: [PATCH] Fix out-of-bounds write with reset_measurements(SRSRAN_MAX_CARRIERS) --- srsue/src/phy/phy_common.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/srsue/src/phy/phy_common.cc b/srsue/src/phy/phy_common.cc index 88f290732e..a84b5104b4 100644 --- a/srsue/src/phy/phy_common.cc +++ b/srsue/src/phy/phy_common.cc @@ -655,6 +655,7 @@ void phy_common::reset_measurements(uint32_t cc_idx) for (uint32_t cc = 0; cc < SRSRAN_MAX_CARRIERS; cc++) { reset_measurements(cc); } + return; } // Default all metrics to NAN to prevent providing invalid information on traces and other layers