Skip to content

bug: find -printf panics issues #693

@HackingRepo

Description

@HackingRepo

Hi, findutils mainteners

the issue persists even with find, the -printf option caused again panics

relunsec@relunsec:~/software/findutils$ ./target/release/find -printf "%111111c" 

thread 'main' (157409) panicked at src/find/matchers/printf.rs:603:37:
Formatting argument out of range
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
relunsec@relunsec:~/software/findutils$ ./target/release/find -printf "%111111n" 

thread 'main' (157417) panicked at src/find/matchers/printf.rs:603:37:
Formatting argument out of range
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

relunsec@relunsec:~/software/findutils$ ./target/release/find -printf "%111111y" 

thread 'main' (158094) panicked at src/find/matchers/printf.rs:603:37:
Formatting argument out of range
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
relunsec@relunsec:~/software/findutils$ 

it is the same issue we see with printf and progogated to find -printf also and needs be fixed

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