A heap-based buffer overflow issue exists due to a bug in the `SmallVec::insert many` method. This method allocated a buffer that was smaller than needed and then wrote past the end of the buffer, causing a buffer overflow and memory corruption on the heap. The bug was triggered when the iterator passed to `insert many` yielded more items than the lower bound returned from its `size hint` method.