Closed
Description
use std;
import std::vec;
fn main()
{
let vec[int] a = [0];
auto i = 20;
while (i > 0) {
a += a;
i -= 1;
}
}
I suspect, but haven't confirmed, the following:
If a vector that is in the process of self-appending (v += v) grows, we can realloc the existing vector pointer and invalidate the memory that is being copied.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
msullivan commentedon Jun 24, 2011
I'm the last person who touched the vec append glue. I'll look into it.
msullivan commentedon Jun 24, 2011
Yeah, you were exactly right. Fixed by #573.
Auto merge of rust-lang#498 - learnopengles:run-ios-tests, r=alexcric…
[s390x] Fall back to scalar math for portable floating-point vector o…
submodules: update clippy from a416c5e to fc24fce
Auto merge of #57079 - matthiaskrgr:clippy, r=oli-obk
Merge pull request rust-lang#498 from chriskrycho/const-evaluation-467
Correct and simplify sdot/ddot (rust-lang#498)
Merge pull request rust-lang#498 from rust-lang/fix/pass-indirect-wit…