about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2020-01-22 20:28:28 +0000
committerOliver Middleton <olliemail27@gmail.com>2020-01-22 20:28:28 +0000
commit9d3e84432dae2e96a5e0f97be18ee09b5a2217b1 (patch)
treed6e8e6fb3fc52907cdb2264f3cda74cabd359d51 /src/libstd/sys/unix/stack_overflow.rs
parent900811e43047fc5593f39b0363373530b02c87e0 (diff)
downloadrust-9d3e84432dae2e96a5e0f97be18ee09b5a2217b1.tar.gz
rust-9d3e84432dae2e96a5e0f97be18ee09b5a2217b1.zip
Avoid overflow in `std::iter::Skip::count`
The call to `count` on the inner iterator can overflow even if `Skip` itself would return less that `usize::max_value()` items.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions