From 4d75c70be48fb2292cec40bfedd8ab6af41486a7 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 29 Mar 2009 13:12:59 +0000 Subject: [PATCH] Merged revisions 70676 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r70676 | benjamin.peterson | 2009-03-29 08:02:52 -0500 (Sun, 29 Mar 2009) | 1 line fix variable name #5595 ........ --- Lib/ntpath.py | 2 +- Misc/NEWS | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 4b78d8d223b6..ac928e1a928d 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -257,7 +257,7 @@ lexists = exists def ismount(path): """Test whether a path is a mount point (defined as root of drive)""" unc, rest = splitunc(path) - seps = _get_bothseps(p) + seps = _get_bothseps(path) if unc: return rest in p[:0] + seps p = splitdrive(path)[1] diff --git a/Misc/NEWS b/Misc/NEWS index c007f82c20a4..b1e54e1f2498 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -26,6 +26,8 @@ Core and Builtins Library ------- +- Issue #5595: Fix UnboundedLocalError in ntpath.ismount(). + - Issue #1174606: Calling read() without arguments of an unbounded file (typically /dev/zero under Unix) could crash the interpreter. -- 2.47.3