Skip to content

bug(tsort): when ulimit -v 1048576 and passing to ./tsort /dev/full panics #12992

Description

@HackingRepo

Hi, uutils mainteners

our test confirmed tsort panic when using ulimit and tsort with /dev/full, it panics

relunsec@relunsec:~/software/coreutils/target/debug$ ./tsort /dev/full
memory allocation of 1073741824 bytes failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted                    (core dumped) ./tsort /dev/full

while the gnu one

relunsec@relunsec:~/software/coreutils/target/debug$ gnutsort /dev/full
gnutsort: memory exhausted
relunsec@relunsec:~/software/coreutils/target/debug$ 

prints memory exhausted

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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions