Skip to content

bug(od): when -j a massive positive number it accepts it and instead of rejecting it #12842

Description

@HackingRepo

Hi, uutils mainteners

i want let you known that the uutils od, , as i tried

relunsec@relunsec:~/software/coreutils/target/debug$ ./od -j 11626525626624126226 a
od: tried to skip past end of input
1205315567243272026422
relunsec@relunsec:~/software/coreutils/target/debug$ 

when "a" content is "\nhello"

and then

relunsec@relunsec:~/software/coreutils/target/debug$ ./od -j 11626525626624126226 /usr/share/dict/words
od: tried to skip past end of input
1205315567243272026422
relunsec@relunsec:~/software/coreutils/target/debug$ 

as i see the input stay the same when i used -j with 11626525626624126226, it is a very weird behavior regardless of the file
even a is not the same as usr share dict words, it outputs the same number 1205315567243272026422
very interesting weird behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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