Skip to content

Commit d798dc1

Browse files
committed
merge 3.5 (python#25630)
2 parents f31f971 + a4d33b3 commit d798dc1

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Release date: XXXX-XX-XX
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #25630: Fix a possible segfault during argument parsing in functions
14+
that accept filesystem paths.
15+
1316
- Issue #23564: Fixed a partially broken sanity check in the _posixsubprocess
1417
internals regarding how fds_to_pass were passed to the child. The bug had
1518
no actual impact as subprocess.py already avoided it.

Objects/unicodeobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3775,6 +3775,7 @@ PyUnicode_FSConverter(PyObject* arg, void* addr)
37753775
void *data;
37763776
if (arg == NULL) {
37773777
Py_DECREF(*(PyObject**)addr);
3778+
*(PyObject**)addr = NULL;
37783779
return 1;
37793780
}
37803781
if (PyBytes_Check(arg)) {

0 commit comments

Comments
 (0)