[Numpy-svn] [numpy/numpy] 5a1441: BUG: fix out of bound access in unicode argmin/arg...

GitHub noreply at github.com
Fri Sep 19 16:33:53 EDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 5a14415b0aa8df194b68da840d6a58297e1e03b0
      https://github.com/numpy/numpy/commit/5a14415b0aa8df194b68da840d6a58297e1e03b0
  Author: Julian Taylor <jtaylor.debian at googlemail.com>
  Date:   2014-09-19 (Fri, 19 Sep 2014)

  Changed paths:
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  BUG: fix out of bound access in unicode argmin/argmax

elsize is in bytes and the pointer of unicode type, so it must divided
by the size.
Closes gh-5082


  Commit: 882c02853f0cc3d08e46b25ff199bd10061e340f
      https://github.com/numpy/numpy/commit/882c02853f0cc3d08e46b25ff199bd10061e340f
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2014-09-19 (Fri, 19 Sep 2014)

  Changed paths:
    M numpy/core/src/multiarray/arraytypes.c.src
    M numpy/core/tests/test_multiarray.py

  Log Message:
  -----------
  Merge pull request #5087 from juliantaylor/unicode-argmin

BUG: fix out of bound access in unicode argmin/argmax


Compare: https://github.com/numpy/numpy/compare/4083883228d6...882c02853f0c


More information about the Numpy-svn mailing list