diff options
| author | bors <bors@rust-lang.org> | 2015-04-13 00:34:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-04-13 00:34:21 +0000 |
| commit | 47def3ef27a2e027f1a93ef7870ff131ee7926fd (patch) | |
| tree | 7cc0ea5f165b931074a29de01cebccdc1f5e7538 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | c3947061d6a914e9f1ac6267b2b079ce851d0e62 (diff) | |
| parent | ac617b628899282f714fd6a91471d1f0b1cc3217 (diff) | |
| download | rust-47def3ef27a2e027f1a93ef7870ff131ee7926fd.tar.gz rust-47def3ef27a2e027f1a93ef7870ff131ee7926fd.zip | |
Auto merge of #23849 - bcoopers:master, r=pnkfelix
Right now, if the user requests to increase the vector size via reserve() or push_back() and the request brings the attempted memory above usize::MAX, we panic. With this change there is only a panic if the minimum requested memory that could meet the requirement is above usize::MAX- otherwise it simply requests its largest capacity possible, usize::MAX.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
