8000 Fix segfault when PyArray_VOID and no minitype in _array_find_type. by walshb · Pull Request #142 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Fix segfault when PyArray_VOID and no minitype in _array_find_type. #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix segfault when PyArray_VOID and no minitype in _array_find_type.
  • Loading branch information
walshb committed Aug 21, 2011
commit 133642959ff1a7eab5539953abe6b7b59f8462a7
2 changes: 1 addition & 1 deletion numpy/core/src/multiarray/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ _array_find_type(PyObject *op, PyArray_Descr *minitype, int max)
* unless input was already a VOID
*/
if (outtype->type_num == PyArray_VOID &&
minitype->type_num != PyArray_VOID) {
(minitype == NULL || minitype->type_num != PyArray_VOID)) {
Py_DECREF(outtype);
return PyArray_DescrFromType(PyArray_OBJECT);
}
Expand Down
0