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
{{ message }}
Repository navigation
ShellStream.Expect does not remove all matched data when multi-byte character encoding is used #383
When we receive multi-bytes characters from a SSH server (for example, 'é' encoded in UTF-8 giving bytes [0xC3, 0xA9]), the ShellStream.Expect methods remove less bytes from the _incoming byte queue than what was really matched, so that the next read will return some of the data that should have been removed by Expect.
The bug seems to be when the functions call "_incoming.Dequeue()": they assume that the number of bytes to remove is the same as the number of character matched, which is incorrect for multi-byte encoding.
Activity
IgorMilavec commentedon Feb 24, 2022
I have created a discussion #926 for all ShellStream related issues.
jscarle commentedon Feb 13, 2024
@IgorMilavec @WojciechNagorski This was fixed by #1315.