lion03 / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

vector::insert has race conditions #331

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
vector_base::fill_insert and vector_base::range_insert have race conditions 
because they use copy on overlapping ranges.

We need to detect when the ranges overlap and copy to and from a temporary in 
this case. We should eliminate thrust::detail::move and introduce 
thrust::detail::potentially_overlapping_copy and 
thrust::detail::overlapping_copy. Host code can probably ignore this case for 
now.

Original issue reported on code.google.com by jaredhoberock on 8 Apr 2011 at 6:26

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 54957c9a21a2.

Original comment by jaredhoberock on 9 Apr 2011 at 12:54