Skip to content
Open
Show file tree
Hide file tree
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
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
*.deb
*.log
*.patch
build*/
bld*/
Testing/
.cache/
schema_parameters.yaml
10 changes: 6 additions & 4 deletions lib/include/srsran/asn1/asn1_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ class dyn_array
if (this == &other) {
return *this;
}
resize(other.size());
std::copy(&other[0], &other[size_], data_);
resize(other.size());
std::copy(&other[0], &other[0] + other.size(), data_);
return *this;
}
void resize(uint32_t new_size, uint32_t new_cap = 0)
Expand All @@ -243,9 +243,11 @@ class dyn_array
cap_ = new_size > new_cap ? new_size : new_cap;
if (cap_ > 0) {
data_ = new T[cap_];
if (old_data != NULL) {
if (old_data != NULL && size_ > 0) {
srsran_assert(cap_ > size_, "Old size larger than new capacity in dyn_array\n");
std::copy(&old_data[0], &old_data[size_], data_);
for (uint32_t i = 0; i < size_; ++i) {
data_[i] = old_data[i];
}
}
} else {
data_ = NULL;
Expand Down
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