This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients andreas.schawo, ocean-city, pitrou
Date 2009-03-23.18:39:40
SpamBayes Score 2.2650795e-05
Marked as misclassified No
Message-id <1237833584.36.0.166175831684.issue5544@psf.upfronthosting.co.za>
In-reply-to
Content
I cannot test this because I don't have recent VC, but last week change
to _fileio.c is this.

http://svn.python.org/view/python/branches/py3k/Modules/_fileio.c?r1=70187&r2=70352

On windows, lseek was used before, but _lseeki64 in portable_lseek is
used now. Maybe does following patch work?

Index: Modules/_fileio.c
===================================================================
--- Modules/_fileio.c	(revision 70537)
+++ Modules/_fileio.c	(working copy)
@@ -682,6 +682,9 @@
 			return NULL;
 	}
 
+	if (!_PyVerify_fd(fd))
+		return NULL;
+
 	Py_BEGIN_ALLOW_THREADS
 #if defined(MS_WIN64) || defined(MS_WINDOWS)
 	res = _lseeki64(fd, pos, whence);
History
Date User Action Args
2009-03-23 18:39:44ocean-citysetrecipients: + ocean-city, pitrou, andreas.schawo
2009-03-23 18:39:44ocean-citysetmessageid: <1237833584.36.0.166175831684.issue5544@psf.upfronthosting.co.za>
2009-03-23 18:39:41ocean-citylinkissue5544 messages
2009-03-23 18:39:41ocean-citycreate