Closes another memory corruption, this time due to heap overrun.