Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8988ebf

Browse files
committed
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.
1 parent aa27982 commit 8988ebf

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lib/ctypes/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def _findLib_crle(name, is64):
184184
else:
185185
cmd = 'env LC_ALL=C /usr/bin/crle 2>/dev/null'
186186

187+
paths = None
187188
with contextlib.closing(os.popen(cmd)) as f:
188189
for line in f.readlines():
189190
line = line.strip()

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ Core and Builtins
107107
Library
108108
-------
109109

110+
- Issue #24114: Fix an uninitialized variable in `ctypes.util`.
111+
112+
The bug only occurs on SunOS when the ctypes implementation searches
113+
for the `crle` program. Patch by Xiang Zhang. Tested on SunOS by
114+
Kees Bos.
115+
110116
- Issue #26864: In urllib.request, change the proxy bypass host checking
111117
against no_proxy to be case-insensitive, and to not match unrelated host
112118
names that happen to have a bypassed hostname as a suffix. Patch by Xiang

0 commit comments

Comments
 (0)