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 pakal
Recipients pakal
Date 2010-05-16.18:22:10
SpamBayes Score 0.0004163476
Marked as misclassified No
Message-id <1274034133.01.0.249446827178.issue8734@psf.upfronthosting.co.za>
In-reply-to
Content
In python trunk, _set_invalid_parameter_handler() has been dropped and replaced by custom checking functions, but in msvcrt.get_osfhandle() these checks aren't present, so providing a bad FD leads to a crash.

Here is the little fix + a test (added to test_fileio, because I can't find unit tests for the msvcrt builtin, and similar "bad fd" cases are treated there).
History
Date User Action Args
2010-05-16 18:22:13pakalsetrecipients: + pakal
2010-05-16 18:22:13pakalsetmessageid: <1274034133.01.0.249446827178.issue8734@psf.upfronthosting.co.za>
2010-05-16 18:22:11pakallinkissue8734 messages
2010-05-16 18:22:11pakalcreate