Skip to content

bug(dd): when skip= is a very large number it panics #12846

@HackingRepo

Description

@HackingRepo

Hi, uutils mainteners

we confirmed dd in the fourth panics when skip= is a very large number

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

thread 'main' (110372) panicked at src/uu/dd/src/dd.rs:164:32:
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