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

Infinite loop while extending buffer #168

Closed
fkirill opened this issue Jan 8, 2014 · 0 comments
Closed

Infinite loop while extending buffer #168

fkirill opened this issue Jan 8, 2014 · 0 comments

Comments

@fkirill
Copy link

fkirill commented Jan 8, 2014

Small defect.
If you use the following fragment of code

Output output = new Output(0, 10000);
kryo.writeClassAndObject(output, msg);

then Kryo.writeClassAndObject will hang forefver.

But if you create output like new Output(1, 10000), then everything is ok.

The problem is in the buffer size algorithm, it doesn't take into account that initial size maybe zero.

@romix romix closed this as completed in 82d134d Jan 8, 2014
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

1 participant