Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5e7a327

Browse filesBrowse files
authored
Merge pull request #13291 from meeseeksmachine/auto-backport-of-pr-13287-on-v3.0.x
Backport PR #13287 on branch v3.0.x (Fix unsafe use of NULL pointer)
2 parents 1013cea + 6d748f1 commit 5e7a327
Copy full SHA for 5e7a327

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎src/file_compat.h

Copy file name to clipboardExpand all lines: src/file_compat.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ static NPY_INLINE FILE *mpl_PyFile_Dup(PyObject *file, char *mode, mpl_off_t *or
9595
#endif
9696
if (handle == NULL) {
9797
PyErr_SetString(PyExc_IOError, "Getting a FILE* from a Python file object failed");
98+
return NULL;
9899
}
99100

100101
/* Record the original raw file handle position */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.