cpython (merge 3.5 -> default): Issue #24114: Fix an uninitialized variable in `ctypes.util`.
![](https://secure.gravatar.com/avatar/8ac615df352a970211b0e3d94a307c6d.jpg?s=120&d=mm&r=g)
https://hg.python.org/cpython/rev/5b5fbce1db9c changeset: 101194:5b5fbce1db9c parent: 101189:1ceb91974dc4 parent: 101193:db5baad7ad69 user: Meador Inge <meadori@gmail.com> date: Sat Apr 30 22:17:22 2016 -0500 summary: Issue #24114: Fix an uninitialized variable in `ctypes.util`. The bug only occurs on SunOS when the ctypes implementation searches for the `crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos. files: Lib/ctypes/util.py | 1 + Misc/NEWS | 6 ++++++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -184,6 +184,7 @@ else: cmd = 'env LC_ALL=C /usr/bin/crle 2>/dev/null' + paths = None with contextlib.closing(os.popen(cmd)) as f: for line in f.readlines(): line = line.strip() diff --git a/Misc/NEWS b/Misc/NEWS --- a/Misc/NEWS +++ b/Misc/NEWS @@ -256,6 +256,12 @@ Library ------- +- Issue #24114: Fix an uninitialized variable in `ctypes.util`. + + The bug only occurs on SunOS when the ctypes implementation searches + for the `crle` program. Patch by Xiang Zhang. Tested on SunOS by + Kees Bos. + - Issue #26864: In urllib.request, change the proxy bypass host checking against no_proxy to be case-insensitive, and to not match unrelated host names that happen to have a bypassed hostname as a suffix. Patch by Xiang -- Repository URL: https://hg.python.org/cpython
participants (1)
-
meador.inge