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

dd: parse big numbers and return u64::MAX #5901

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

jfinkels
Copy link
Collaborator

Change the behavior of dd so that it parses numbers that would be too big and instead treats them as u64::MAX. This allows dd to run without error on

dd count=00x9999999999999999999999999999999999999999999999999999999999999

This matches the behavior of GNU dd. This test case appears in GNU test suite tests/dd/misc.sh.

Change the behavior of `dd` so that it parses numbers that would be too
big and instead treats them as `u64::MAX`. This allows `dd` to run
without error on

    dd count=00x9999999999999999999999999999999999999999999999999999999999999

This matches the behavior of GNU `dd`.
@jfinkels jfinkels force-pushed the dd-parse-big-numbers branch from 0f246d5 to d782fd1 Compare January 28, 2024 18:41
@sylvestre sylvestre merged commit 08f07f9 into uutils:main Jan 28, 2024
61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants