uutils / uutils/coreutils

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

Open
#12,842 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

U - od
Dominant language
Rust
Stars
24.1k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
365

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the uutils od command with -j 11626525626624126226 against the two inputs shown in the report. Trace the -j argument handling and compare the result with the expected rejection for an excessively large positive value; done means the invalid value is rejected consistently rather than producing the reported output.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.