diff options
| author | blake2-ppc <blake2-ppc> | 2013-09-10 23:29:10 +0200 |
|---|---|---|
| committer | blake2-ppc <blake2-ppc> | 2013-09-16 19:13:30 +0200 |
| commit | 8d488f38ed4fad414f9a693b6f4574dfa92b06fd (patch) | |
| tree | 30b7952ee285cc1355402d72f151d38dc82ddd71 /src/rt/rust_uv.cpp | |
| parent | 2017cc3ce45a4c1827c5ccee400199bca8f22594 (diff) | |
| download | rust-8d488f38ed4fad414f9a693b6f4574dfa92b06fd.tar.gz rust-8d488f38ed4fad414f9a693b6f4574dfa92b06fd.zip | |
std::vec: Fix hazards with uint overflows in unsafe code
Issue #8742 Add the method `.reserve_additional(n: uint)`: Check for overflow in self.len() + n, and reserve that many elements (rounded up to next power of two). Does nothing if self.len() + n < self.capacity() already.
Diffstat (limited to 'src/rt/rust_uv.cpp')
0 files changed, 0 insertions, 0 deletions
