Skip to content

perf(find): when using -files0-from /dev/urandom or /dev/full, it consumes massive large memory #779

Description

@HackingRepo

Hi, findutils mainteners

we confirmed when using

relunsec@relunsec:~/software/findutils/target/debug$ ./find -files0-from /dev/urandom

will exhaust all your device memory instantly and output no output all, as i confirmed with watch free -mh

Every 2.0s: free -mh                                                                                                                                                                                       relunsec: Fri Jul 17 04:46:12 2026

               total        used        free      shared  buff/cache   available
Mem:           7.0Gi       6.1Gi       182Mi       359Mi       1.0Gi       893Mi
Swap:          4.0Gi       2.3Gi       1.7Gi

when running

relunsec@relunsec:~/software/findutils/target/debug$ /bin/find -files0-from /dev/urandom

it is not exhausting very fast memory, and outputs the current valid filenames, when pressing CTRL+C. to stop it, the uu find output effectively nothing just consuming and exhausting very fast memory

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