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>2016-02-26 22:21:59 +0000
committerbors <bors@rust-lang.org>2016-02-26 22:21:59 +0000
commit98a8a71236453a16f0048a65506f4d0bea042ca5 (patch)
tree8330302b253e4f26f4d5ec8f942bd5157e3cdaaa /src/libstd/sys/unix/stack_overflow.rs
parent64b4b6d6c6ab98261ebf4349bf7064d69b117964 (diff)
parentac3cc33fee5e0f576cc9f04f7df40cd5d968be43 (diff)
downloadrust-98a8a71236453a16f0048a65506f4d0bea042ca5.tar.gz
rust-98a8a71236453a16f0048a65506f4d0bea042ca5.zip
Auto merge of #31876 - ollie27:win_fill_bytes, r=brson
CryptGenRandom takes a DWORD (u32) for the length so it only supports
writing u32::MAX bytes at a time.

Casting the length from a usize caused truncation meaning the whole
buffer was not always filled.

cc #31841

This is the same as rust-lang-nursery/rand#99. I think it's a good idea to keep the implementations in sync.

r? @alexcrichton
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions