ETLCPP / etl

Embedded Template Library
https://www.etlcpp.com
MIT License
2.05k stars 372 forks source link

Possible bug on assign of etl::array #829

Closed cuim96 closed 2 months ago

cuim96 commented 5 months ago

On assign method of etl/array.h

template void assign(TIterator first, const TIterator last, parameter_t value) { // Copy from the range. iterator p = etl::copy(first, last, begin()); // shouldn't this also be etl::copy_s? What happens if range [first, last[ is bigger than [begin(), end()[?

// Initialise any that are left. etl::fill(p, end(), value); // what happens here if p > end()? }

jwellbelove commented 2 months ago

Fixed 20.38.11