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 certain occasion, an uncaught ArgumentOutOfRangeException may be thrown in method SslHandler.ReadBuffer().
This is caused by an invalid count argument when calling SslStream.Read(byte[] buffer, int offset, int count). To avoid overflow, it should be buf.Remaining, not buf.Capacity.
Besides, the capacity of buf is incorrectly enlarged.
Fixes the incorrect count and capacity while reading from a SslStream, and do not write empty buffer into a SslStream.
Commit 5d6fcbd fixed this issue.
Problem
In certain occasion, an uncaught
ArgumentOutOfRangeException
may be thrown in methodSslHandler.ReadBuffer()
.This is caused by an invalid
count
argument when callingSslStream.Read(byte[] buffer, int offset, int count)
. To avoid overflow, it should bebuf.Remaining
, notbuf.Capacity
.Besides, the capacity of buf is incorrectly enlarged.
Related with #15.
Solution
Fixes the incorrect count and capacity while reading from a SslStream, and do not write empty buffer into a SslStream.
Commit 5d6fcbd fixed this issue.
Backward compatibility
No backward compatibility problems are expected.
Contributor
@ddfczm
The text was updated successfully, but these errors were encountered: