Skip to content

BUG: fix small issues found with cppcheck#3832

Merged
charris merged 1 commit intonumpy:masterfrom
juliantaylor:static-issues
Sep 29, 2013
Merged

BUG: fix small issues found with cppcheck#3832
charris merged 1 commit intonumpy:masterfrom
juliantaylor:static-issues

Conversation

@juliantaylor
Copy link
Contributor

uninitialized use in strided_to_strided_one_to_n_with_finish
wrong error NULL checks in PyArray_MapIterNew and einsum_sub_op_from_str
double free and memleak in umath_linalg.c.src init
@lapack_func@

uninitialized use in _strided_to_strided_one_to_n_with_finish
wrong error NULL checks in PyArray_MapIterNew and einsum_sub_op_from_str
double free and memleak in umath_linalg.c.src init_@lapack_func@
@charris
Copy link
Member

charris commented Sep 29, 2013

LGTM, thanks.

charris added a commit that referenced this pull request Sep 29, 2013
BUG: fix small issues found with cppcheck
@charris charris merged commit e051ff1 into numpy:master Sep 29, 2013
@charris charris mentioned this pull request Sep 29, 2013
@charris
Copy link
Member

charris commented Sep 29, 2013

Can you think of any tests for these?

@juliantaylor
Copy link
Contributor Author

the strided_to_strided_one_to_n_with_finish should definitely be tested, but I don't know what it does so I have a hard time thinking of a testcase.
the init_[sd]gesdd should also be testable, but its not called in the testsuite, does someone know how to trigger it?

the other two can probably only be tested by using a malloc that randomly fails.

@charris charris mentioned this pull request Oct 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants