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
AbstractBufferedReadChannel incorrectly updated the buffer offset
and consumed counts when in a read-suspend loop from
`readFully(dest: ByteArray, ...). This caused "holes" in the
consumer buffer as well as truncated data where last N bytes were
all zeroes.
fixes: #526
Copy file name to clipboardExpand all lines: aws-runtime/http-client-engine-crt/common/src/aws/sdk/kotlin/runtime/http/engine/crt/AbstractBufferedReadChannel.kt
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -187,9 +187,10 @@ internal abstract class AbstractBufferedReadChannel(
187
187
throwClosedReceiveChannelException("Unexpeced EOF: expected $remaining more bytes")
Copy file name to clipboardExpand all lines: aws-runtime/http-client-engine-crt/common/test/aws/sdk/kotlin/runtime/http/engine/crt/BufferedReadChannelTest.kt
0 commit comments