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

od: remove Vec::set_len() usage in InputDecoder #1739

Merged
merged 1 commit into from Feb 23, 2021

Conversation

Arcterus
Copy link
Collaborator

This removes the last usage of Vec::set_len() with undefined behavior (AFAIK). Zero-initializing the Vec isn't much of an issue here as it is only created once (over the course of the entire program) and the actual amount of allocated memory should be rather small (usually at least).

See #1729 for more info on the undefined behavior.

@Arcterus Arcterus added U - od security Pull requests that address a security vulnerability labels Feb 20, 2021
@sylvestre sylvestre merged commit 5935876 into uutils:master Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Pull requests that address a security vulnerability U - od
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants