rust/src/libstd/sys
sharkdp af75314ecd Fix possibly endless loop in ReadDir iterator
Certain directories in `/proc` can cause the `ReadDir`
iterator to loop indefinitely. We get an error code (22) when
calling libc's `readdir_r` on these directories, but `entry_ptr`
is `NULL` at the same time, signalling the end of the directory
stream.

This change introduces an internal state to the iterator such
that the `Some(Err(..))` value will only be returned once when
calling `next`. Subsequent calls will return `None`.

fixes #50619
2018-06-12 21:03:27 +02:00
..
cloudabi std: Minimize size of panicking on wasm 2018-04-13 07:03:00 -07:00
redox Clarify error phrase in sub_instant function 2018-06-04 08:59:09 +02:00
unix Fix possibly endless loop in ReadDir iterator 2018-06-12 21:03:27 +02:00
wasm std: Minimize size of panicking on wasm 2018-04-13 07:03:00 -07:00
windows Rollup merge of #49829 - ecstatic-morse:os-docs, r=steveklabnik 2018-04-24 11:57:03 +08:00
mod.rs Make the documentation build work on CloudABI. 2018-01-11 11:29:52 +01:00