uutils / uutils/coreutils

bug(hashsum): when the filename is /dev/drm_dp_aux2 it skips all other arguments

Open
#13,128 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi, uutils mainteners

we confirmed a serious bug when using the filename /dev/drm_dp_aux2, as my test confirmed

relunsec@relunsec:~/software/coreutils/target/debug$ sudo ./md5sum /dev/drm_dp_aux2 a
md5sum: failed to read input: Timed out
relunsec@relunsec:~/software/coreutils/target/debug$ sudo gnumd5sum /dev/drm_dp_aux2 a
gnumd5sum: /dev/drm_dp_aux2: Connection timed out
5d41402abc4b2a76b9719d911017c592  a

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 md5sum /dev/drm_dp_aux2 a command and trace md5sum's argument processing and read-error handling. Done means a timed-out or failed read for one filename does not prevent later arguments from being processed, with output matching the GNU behavior shown in the report.

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
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.