summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorBruce Merry <bmerry@ska.ac.za>2019-06-04 16:32:38 +0200
committerBruce Merry <bmerry@ska.ac.za>2019-06-04 16:32:38 +0200
commit5a967c9d61f7c2ecce4e215065731a7ab2832574 (patch)
treed0e0c849ec56b018d0cd5d37d5973d9d935efe6e /numpy/core/fromnumeric.py
parentafc69816fd2aedf513d4f4e497f28d68e0b2b3d5 (diff)
downloadnumpy-5a967c9d61f7c2ecce4e215065731a7ab2832574.tar.gz
BUG: Fix use-after-free in boolean indexing
The index array is decrefed before extracting the shape to construct the `indices` array. If the caller does not hold a reference (which happens when the caller passed a list from which a temporary array was constructed, for example), this leads to a use-after-free. Closes #13714.
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions