[issue16992] signal.set_wakeup_fd(400) crashes on Windows

2013-01-17 Thread Guido van Rossum

New submission from Guido van Rossum:

On Windows I get an immediate crash with the following code:

import signal
signal.set_wakeup_fd(400)

I think there's a range check missing somewhere.

(I found this because I was passing a socket's fileno() -- my bug, but 
shouldn't crash.)

--
messages: 180171
nosy: gvanrossum
priority: normal
severity: normal
status: open
title: signal.set_wakeup_fd(400) crashes on Windows
versions: Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16992
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16992] signal.set_wakeup_fd(400) crashes on Windows

2013-01-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2adc83b4738f by Benjamin Peterson in branch '3.3':
check windows fd validity (closes #16992)
http://hg.python.org/cpython/rev/2adc83b4738f

New changeset 1a1989021451 by Benjamin Peterson in branch '2.7':
check windows fd validity (closes #16992)
http://hg.python.org/cpython/rev/1a1989021451

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16992
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com