about summary refs log tree commit diff
path: root/src/rustllvm/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-09-27 01:23:24 +0000
committerbors <bors@rust-lang.org>2017-09-27 01:23:24 +0000
commitf71b37bc28326e272a37b938e835d4f99113eec2 (patch)
tree76f1c334ca4582001db86999c23fce03ba70a04f /src/rustllvm/ArchiveWrapper.cpp
parentd4da74424729fd27e007dbcf6858201515f3e971 (diff)
parent81bac74c2ddc6c39f3628a36966f4a56a1282d02 (diff)
downloadrust-f71b37bc28326e272a37b938e835d4f99113eec2.tar.gz
rust-f71b37bc28326e272a37b938e835d4f99113eec2.zip
Auto merge of #44802 - sfackler:vecdeque-oob, r=Gankro
Fix capacity comparison in reserve

You can otherwise end up in a situation where you don't actually resize
but still call into handle_cap_increase which then corrupts head/tail.

Closes #44800

Not totally sure the right way to write a test for this - there are some debug asserts the old bad behavior will hit but we don't build the stdlib with debug assertions by default.

r? @Gankro
Diffstat (limited to 'src/rustllvm/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions