New submission from Pascal Chambon <chambon.pas...@gmail.com>: 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). ---------- components: IO files: msvcrt_crash.patch keywords: patch messages: 105872 nosy: pakal priority: normal severity: normal status: open title: msvcrt get_osfhandle crash on bad FD type: crash versions: Python 2.7 Added file: http://bugs.python.org/file17369/msvcrt_crash.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8734> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com