Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix out-of-bounds write with reset_measurements(SRSRAN_MAX_CARRIERS) #1332

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix out-of-bounds write with reset_measurements(SRSRAN_MAX_CARRIERS)
  • Loading branch information
dotsimon authored and Simon Cornish committed May 2, 2024
commit 1a701394a2d840ebf09e5495917f1d706afd7d7c
1 change: 1 addition & 0 deletions srsue/src/phy/phy_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down