about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2015-05-11 12:37:31 -0700
committerKevin Ballard <kevin@sb.org>2015-05-11 12:37:31 -0700
commitf2614f5858fed10e180102def32c60f180e46496 (patch)
tree88bb940d491cdea2b0a2eb0bf27d2a334edd46f9 /src/libstd/sys/unix/stack_overflow.rs
parente1e34e9275918679336210874f8dd770323daa81 (diff)
downloadrust-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