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

GitHub noreply at github.com
Fri Sep 19 16:35:09 EDT 2014


  Branch: refs/heads/maintenance/1.9.x
  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: 5818fb646c692d0e55945f07c0a2cc411173218c
      https://github.com/numpy/numpy/commit/5818fb646c692d0e55945f07c0a2cc411173218c
  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:
  -----------
  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/f9dd65ede40d...5818fb646c69


More information about the Numpy-svn mailing list