diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-03-23 12:36:05 +0100 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-03-23 12:41:37 +0100 |
commit | 3302291884cedf7089b608688a3fa2e696f629ea (patch) | |
tree | f013f62e35992ffa98cce9003c0d94e86592f856 /numpy/lib/tests/test_function_base.py | |
parent | 51c65c1990c63d4d1fbd8a37d4c69415b0a225b5 (diff) | |
download | numpy-3302291884cedf7089b608688a3fa2e696f629ea.tar.gz |
BUG: fix uninitialized use of size 1 reductions
Size 1 reductions do not intiialize the iterator fully as normal
reductions which triggers uninitialized use in NpyIter_IsFirstVisit.
To fix this check the size of the iterator and return true if it only
has size 1.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions