[Numpy-svn] [numpy/numpy] 2014f2: Fix two instances of memcpy with overlapping sourc...

GitHub noreply@github....
Wed Jul 11 15:59:51 CDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 2014f27622f1cab09f7e96a044722d01ffaad2ca
      https://github.com/numpy/numpy/commit/2014f27622f1cab09f7e96a044722d01ffaad2ca
  Author: Ben Walsh <b@wumpster.com>
  Date:   2012-06-27 (Wed, 27 Jun 2012)

  Changed paths:
    M numpy/core/src/multiarray/lowlevel_strided_loops.c.src

  Log Message:
  -----------
  Fix two instances of memcpy with overlapping source and destination.


  Commit: 85a66079edbbe2f9d507d2d71e09e104d1ccfe5c
      https://github.com/numpy/numpy/commit/85a66079edbbe2f9d507d2d71e09e104d1ccfe5c
  Author: Ben Walsh <b@wumpster.com>
  Date:   2012-06-30 (Sat, 30 Jun 2012)

  Changed paths:
    M numpy/core/src/multiarray/lowlevel_strided_loops.c.src

  Log Message:
  -----------
  Replaced all instances of memcpy with memmove.


  Commit: 4f03448ba0cec054fdad0889d137e5dd80e240d8
      https://github.com/numpy/numpy/commit/4f03448ba0cec054fdad0889d137e5dd80e240d8
  Author: Ben Walsh <b@wumpster.com>
  Date:   2012-06-30 (Sat, 30 Jun 2012)

  Changed paths:
    A numpy/core/tests/test_multiarray_assignment.py

  Log Message:
  -----------
  Added test for overlapping array assignments.


  Commit: d2c8843f0ec8a3b2f81b062b346a94ed5331d4a3
      https://github.com/numpy/numpy/commit/d2c8843f0ec8a3b2f81b062b346a94ed5331d4a3
  Author: Ben Walsh <b@wumpster.com>
  Date:   2012-06-30 (Sat, 30 Jun 2012)

  Changed paths:
    M numpy/core/tests/test_multiarray_assignment.py

  Log Message:
  -----------
  Removed misleading comment.


  Commit: 0920bede09b4a467c9c4e977607c38fd81371087
      https://github.com/numpy/numpy/commit/0920bede09b4a467c9c4e977607c38fd81371087
  Author: njsmith <njs@pobox.com>
  Date:   2012-07-11 (Wed, 11 Jul 2012)

  Changed paths:
    M numpy/core/src/multiarray/lowlevel_strided_loops.c.src
    A numpy/core/tests/test_multiarray_assignment.py

  Log Message:
  -----------
  Merge pull request #324 from walshb/fix_memcpy_overlap

Use memmove instead of memcpy for strided copies, since src and dst can overlap.


Compare: https://github.com/numpy/numpy/compare/f4c47a5e366d...0920bede09b4


More information about the Numpy-svn mailing list