cpython: db5baad7ad69 (original) (raw)
Mercurial > cpython
changeset 101193:db5baad7ad69 3.5
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. [#24114]
Meador Inge meadori@gmail.com | |
---|---|
date | Sat, 30 Apr 2016 21:56:59 -0500 |
parents | ca882ee68d46 |
children | 5b5fbce1db9c 5871b48f4c2e |
files | Lib/ctypes/util.py Misc/NEWS |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-)[+] [-] Lib/ctypes/util.py 1 Misc/NEWS 6 |
line wrap: on
line diff
--- 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[](#l1.7) with contextlib.closing(os.popen(cmd)) as f:[](#l1.8) for line in f.readlines():[](#l1.9) line = line.strip()[](#l1.10)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -107,6 +107,12 @@ Core and Builtins
Library
-------
+- Issue #24114: Fix an uninitialized variable in ctypes.util
.
+