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
Due to the limitation of StreamReader.Read() where it returns -1 if no more characters are available - regardless whether there are any sequence left or not, we are using Stream.Length property to check for short sequences of UTF-8 inputs.
But not all the implementations of Stream will support Length.
If an implementation does not support Length property, short utf-8 sequences will not be caught.
The text was updated successfully, but these errors were encountered:
Due to the limitation of
StreamReader.Read()
where it returns -1 if no more characters are available - regardless whether there are any sequence left or not, we are usingStream.Length
property to check for short sequences of UTF-8 inputs.But not all the implementations of
Stream
will supportLength
.If an implementation does not support Length property, short utf-8 sequences will not be caught.
The text was updated successfully, but these errors were encountered: