The MemoryPool-backed STL allocator defined in arrow/stl.h has the following code:
Status s = pool_->Allocate(n * sizeof(T), &data);
but n * sizeof(T) might silently overflow and lead to an incorrect allocation size.
Reporter: Antoine Pitrou / @pitrou
Note: This issue was originally created as ARROW-15615. Please see the migration documentation for further details.
The MemoryPool-backed STL allocator defined in
arrow/stl.hhas the following code:but
n * sizeof(T)might silently overflow and lead to an incorrect allocation size.Reporter: Antoine Pitrou / @pitrou
Note: This issue was originally created as ARROW-15615. Please see the migration documentation for further details.