eryksun added the comment:
The buffer size only needs to be capped if WINVER < 0x602. This issue doesn't
apply to Windows 8 since it uses the ConDrv device driver instead of LPC.
Prior to Windows 8, WriteFile redirects to WriteConsoleA when passed a console
handle. This makes an LPC call to conhost.exe (csrss.exe before Windows 7),
which copies the buffer to a shared heap. But a Windows 8 console process
instead has actual File handles provided by the ConDrv device:
stdin \Device\ConDrv\Input
stdout \Device\ConDrv\Output
stderr \Device\ConDrv\Output
For File handles, ReadFile and WriteFile simply call the NT system functions
NtReadFile and NtWriteFile. The buffer size is only limited by available memory.
----------
nosy: +eryksun
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11395>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com