diff options
| author | Kevin Ballard <kevin@sb.org> | 2015-05-11 12:37:31 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2015-05-11 12:37:31 -0700 |
| commit | f2614f5858fed10e180102def32c60f180e46496 (patch) | |
| tree | 88bb940d491cdea2b0a2eb0bf27d2a334edd46f9 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | e1e34e9275918679336210874f8dd770323daa81 (diff) | |
| download | rust-f2614f5858fed10e180102def32c60f180e46496.tar.gz rust-f2614f5858fed10e180102def32c60f180e46496.zip | |
Avoid returning a slice with a null pointer from Iter.as_slice()
core::slice::Iter.ptr can be null when iterating a slice of zero-sized elements, but the pointer value used for the slice itself cannot. Handle this case by always returning a dummy pointer for slices of zero-sized elements.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
