Skip to content

bug: empty find -fprintf causes a panic #696

@HackingRepo

Description

@HackingRepo

Hi, uutils findutils mainteners

i want inform you that just caused a panic

relunsec@relunsec:~/software/findutils/target/release$ ./find -fprintf

thread 'main' (167303) panicked at src/find/matchers/mod.rs:480:47:
index out of bounds: the len is 1 but the index is 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
relunsec@relunsec:~/software/findutils/target/release$ 

the GNU find correctly say missing argument

relunsec@relunsec:~/software/findutils/target/release$ /bin/find -fprintf
/bin/find: missing argument to `-fprintf'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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