[New-bugs-announce] [issue20449] _overlapped: read_buffer and write_buffer are misused

STINNER Victor report at bugs.python.org
Thu Jan 30 16:22:29 CET 2014


New submission from STINNER Victor:

I found an issue in overlapped.c: read_buffer and write_buffer attributes are defined in an union, but they are sometimes use even if the type is not good. I found this issue while trying to get a BrokenPipeError on Windows when the stdin stream of a subprocess is full but the process exited.

Could you please review attached patch, especially the change in Overlapped_getresult?

Another option would be to use two real attributes (remove the union), but I like the usage of union :-)

All Tulip unit tests of my subprocess_stream pass on Linux and Windows with the patch.

----------
files: overlapped.patch
keywords: patch
messages: 209721
nosy: gvanrossum, haypo, larry, pitrou, sbt
priority: release blocker
severity: normal
status: open
title: _overlapped: read_buffer and write_buffer are misused
versions: Python 3.4
Added file: http://bugs.python.org/file33812/overlapped.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20449>
_______________________________________


More information about the New-bugs-announce mailing list