[Bug 788461] cp can read from freed memory and can even make corrupt copies