about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-05-12 14:39:31 +0000
committerbors <bors@rust-lang.org>2015-05-12 14:39:31 +0000
commit2a5a320babdf000bc9cf719ccd9d95d250f83a02 (patch)
treec38b76ac8c49fef76d19e0f6027ac676054afa7d /src/libstd/sys/unix/stack_overflow.rs
parent0ad202671fc031ee90133fa5849ef0ec31164e04 (diff)
parentf2614f5858fed10e180102def32c60f180e46496 (diff)
downloadrust-2a5a320babdf000bc9cf719ccd9d95d250f83a02.tar.gz
rust-2a5a320babdf000bc9cf719ccd9d95d250f83a02.zip
Auto merge of #25300 - kballard:core-slice-overflow, r=Gankro
core::slice was originally written to tolerate overflow (notably, with
slices of zero-sized elements), but it was never updated to use wrapping
arithmetic when overflow traps were added.

Also correctly handle the case of calling .nth() on an Iter with a
zero-sized element type. The iterator was assuming that the pointer
value of the returned reference was meaningful, but that's not true for
zero-sized elements.

Fixes #25016.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions