[New-bugs-announce] [issue8734] msvcrt get_osfhandle crash on bad FD

Pascal Chambon report at bugs.python.org
Sun May 16 20:22:13 CEST 2010


New submission from Pascal Chambon <chambon.pascal at 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 <report at bugs.python.org>
<http://bugs.python.org/issue8734>
_______________________________________


More information about the New-bugs-announce mailing list