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

Possible bug on assign of etl::array #829

Closed
filipe-cuim opened this issue Jan 24, 2024 · 1 comment
Closed

Possible bug on assign of etl::array #829

filipe-cuim opened this issue Jan 24, 2024 · 1 comment
Assignees
Labels

Comments

@filipe-cuim
Copy link

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
Copy link
Contributor

Fixed 20.38.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants