Skip to content

bug(find): not error out when the --files0-from is invalid UTF8 like \xFF #781

Description

@HackingRepo

Hi, findutils mainteners

i confirmed that the uu find do not output any errors when a.txt contains \xFF

relunsec@relunsec:~/software/findutils/target/debug$ sudo ./find -files0-from a.txt
relunsec@relunsec:~/software/findutils/target/debug$ echo $'\xFF\nfile2.txt' > a.txt
relunsec@relunsec:~/software/findutils/target/debug$ sudo ./find -files0-from a.txt
relunsec@relunsec:~/software/findutils/target/debug$ sudo /bin/find -files0-from a.txt
/bin/find: ‘\377\nfile2.txt\n’: Invalid or incomplete multibyte or wide character
relunsec@relunsec:~/software/findutils/target/debug$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions