[New-bugs-announce] [issue5188] telnetlib process_rawq buffer handling is confused

David Christian report at bugs.python.org
Sun Feb 8 23:16:12 CET 2009


New submission from David Christian <dbc at rpath.com>:

in telnetlib's process_rawq, rawq_getchar() returns a bytes object of
length 1.

However, that buffer is then compared directly against the variable IAC,
which is the integer 255.  This is always false, as bytes([255]) != 255.

Checked svn and looks like this issue still exists as of 2/8/2009.

----------
messages: 81424
nosy: dugan
severity: normal
status: open
title: telnetlib process_rawq buffer handling is confused
versions: Python 3.0, Python 3.1

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


More information about the New-bugs-announce mailing list