numpy/numpy — pull request #2819 by y-p (2012-12-14 16:17:27+00:00)
Title: backport PR #324 to 1.6.x branch - memcpy bug with overlapping ssrc/dest

This was the cause of intermittent failing tests on https://github.com/pydata/pandas/issues/2490#issuecomment-11380806.

The problem manifested as data corruption on debian wheezy amd64 with libc 2.13-37.
window and mac OS/X, as well as ubuntu precise saw no issues so far.

I traced this back to #324 which was not backported to 1.6.x, nor does it seem
like the distros are packaging it.

The test suite has many errors for the current tip of maintenance/1.6.x, so this
was cherry-picked blindly. I can confirm that it fixes issues I was having, but not
that it's correct in any other way.