Skip to content

bug(hashsum): uutils show no error when providing an invalid hash and passing the option -c and --status #12867

Description

@HackingRepo

Hi, uutils mainteners

the md5sum utility exits with success in invalid hashes

relunsec@relunsec:~/software/coreutils/target/debug$ echo -n I\'mNotAHash | ./md5sum -c --status
relunsec@relunsec:~/software/coreutils/target/debug$ 

instead of erroing out, while the gnu one errors out correctly

relunsec@relunsec:~/software/coreutils/target/debug$ echo -n I\'mNotAHash | gnumd5sum -c --status
gnumd5sum: 'standard input': no properly formatted checksum lines found
relunsec@relunsec:~/software/coreutils/target/debug$ 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions