Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble checking eof when using chunked input #651

Closed
aaudiber opened this issue Feb 23, 2019 · 1 comment
Closed

Trouble checking eof when using chunked input #651

aaudiber opened this issue Feb 23, 2019 · 1 comment

Comments

@aaudiber
Copy link

aaudiber commented Feb 23, 2019

This test is failing in kryo 4.0.2 with com.esotericsoftware.kryo.KryoException: Buffer underflow

  @Test
  public void test() {
    InputChunked input = new InputChunked(new ByteArrayInputStream(new byte[]{}));
    input.eof();
  }

Is there a better way to check for the end of the stream when reading chunked data?

NathanSweet added a commit that referenced this issue Feb 23, 2019
@NathanSweet
Copy link
Member

I've fixed this in the master (v5) and kryo-4 branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants