Skip to content

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

Merged
sylvestre merged 1 commit intouutils:mainfrom
jfinkels:dd-parse-big-numbers
Jan 28, 2024
Merged

dd: parse big numbers and return u64::MAX#5901
sylvestre merged 1 commit intouutils:mainfrom
jfinkels:dd-parse-big-numbers

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`.
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