rust-lang/rust — pull request #16706 by pnkfelix (2014-08-23 17:31:35+00:00)
Title: liballoc: Copy only up to `min(new_size, old_size)` when doing reallocate.

Copy only up to `min(new_size, old_size)` when doing reallocate.

This was a bug when running with jemalloc disabled.

Fix #16687