changeset: 101192:57bf7a40925f branch: 2.7 user: Meador Inge date: Sat Apr 30 21:56:59 2016 -0500 files: Lib/ctypes/util.py Misc/NEWS description: 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. diff -r 6d49a7330c99 -r 57bf7a40925f Lib/ctypes/util.py --- a/Lib/ctypes/util.py Sat Apr 30 18:36:31 2016 +0300 +++ b/Lib/ctypes/util.py Sat Apr 30 21:56:59 2016 -0500 @@ -191,6 +191,7 @@ else: cmd = 'env LC_ALL=C /usr/bin/crle 2>/dev/null' + paths = None for line in os.popen(cmd).readlines(): line = line.strip() if line.startswith('Default Library Path (ELF):'): diff -r 6d49a7330c99 -r 57bf7a40925f Misc/NEWS --- a/Misc/NEWS Sat Apr 30 18:36:31 2016 +0300 +++ b/Misc/NEWS Sat Apr 30 21:56:59 2016 -0500 @@ -77,6 +77,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, 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 Zhang.