diff options
author | Meador Inge <meadori@gmail.com> | 2016-04-30 22:17:22 -0500 |
---|---|---|
committer | Meador Inge <meadori@gmail.com> | 2016-04-30 22:17:22 -0500 |
commit | f1e2671fdf88fce8a367ee63aba4a02352bd94d6 (patch) | |
tree | c76763c8378ea4c99ef1f801046b5ceb8603c455 | |
parent | 51b697b7f36e26c73136684f95e5d407fc2ed474 (diff) | |
parent | 8988ebf2a7a89620781feca39074f91469e7baf2 (diff) | |
download | cpython-git-f1e2671fdf88fce8a367ee63aba4a02352bd94d6.tar.gz |
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.
-rw-r--r-- | Lib/ctypes/util.py | 1 | ||||
-rw-r--r-- | Misc/NEWS | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py index 38bd57fddd..b89c315726 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -184,6 +184,7 @@ elif os.name == "posix": 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() @@ -256,6 +256,12 @@ Core and Builtins 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 |