You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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').
The text was updated successfully, but these errors were encountered:
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
whenself.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').The text was updated successfully, but these errors were encountered: