shuf: Fix OOM crash for huge number ranges #5980
91.12% of diff hit (target 85.60%)
View this Pull Request on Codecov
91.12% of diff hit (target 85.60%)
Annotations
Check warning on line 332 in src/uu/shuf/src/shuf.rs
codecov / codecov/patch
src/uu/shuf/src/shuf.rs#L332
Added line #L332 was not covered by tests
Check warning on line 108 in tests/by-util/test_shuf.rs
codecov / codecov/patch
tests/by-util/test_shuf.rs#L108
Added line #L108 was not covered by tests
Check warning on line 111 in tests/by-util/test_shuf.rs
codecov / codecov/patch
tests/by-util/test_shuf.rs#L111
Added line #L111 was not covered by tests
Check warning on line 132 in tests/by-util/test_shuf.rs
codecov / codecov/patch
tests/by-util/test_shuf.rs#L132
Added line #L132 was not covered by tests
Check warning on line 137 in tests/by-util/test_shuf.rs
codecov / codecov/patch
tests/by-util/test_shuf.rs#L137
Added line #L137 was not covered by tests
Check warning on line 177 in tests/by-util/test_shuf.rs
codecov / codecov/patch
tests/by-util/test_shuf.rs#L177
Added line #L177 was not covered by tests
Check warning on line 180 in tests/by-util/test_shuf.rs
codecov / codecov/patch
tests/by-util/test_shuf.rs#L180
Added line #L180 was not covered by tests