Skip to content

bug(more): when -n is a max number of u16 date type, more panics #12784

@HackingRepo

Description

@HackingRepo

Hi, uutils mainteners

that is an overflow issue with the more utility, as you can see

relunsec@relunsec:~/software/coreutils/target/debug$ ./more -n 65535
panicked at src/uu/more/src/more.rs:126:61:
attempt to add with overflow
relunsec@relunsec:~/software/coreutils/target/debug$ 

it panics just using the max value of the the type because it tries to add after 65535 and panics

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