Skip to content

bug(dd): when count= is a very large number it panics #12843

@HackingRepo

Description

@HackingRepo

Hi, uutils mainteners

we confirmed dd panics when count= is a very large number

relunsec@relunsec:~/software/coreutils/target/debug$ ./dd if=a of=b count=177817277272177278

thread 'main' (107552) panicked at src/uu/dd/src/dd.rs:1425:42:
attempt to multiply with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
relunsec@relunsec:~/software/coreutils/target/debug$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions