Open
Description
In the telnetlib.py file, the rawq_getchar function returns an empty string (b'') when self.rawq[self.irawq]
evaluates to 0. This seems to be caused by the line of code:
exscript/Exscript/protocols/telnetlib.py
Lines 574 to 576 in 9d5b035
This issue appears to be related to the conversion of an integer value of 0 to bytes, which results in an empty byte string instead of a null byte character.
Steps to Reproduce:
Call rawq_getchar
when self.rawq[self.irawq]
is 0.
Observe that instead of returning the expected byte value, an empty string b'' is returned.
Expected Behavior:
When self.rawq[self.irawq]
is 0, the method should ideally return a representation of the null byte (b'\x00').
Metadata
Metadata
Assignees
Labels
No labels