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
Fix buffer overflow error in KryoBackedDecoder #18338
Conversation
@adammurdoch pls. take a look. I'm sure this fix solves the problem in a sense:
BUT, I don't see how this situation can occur and that worries me. The encoder is written in such a way that it should never write more data than there is space in the decoding buffer... (Hence your initial assumptions.) Unless the decoder tries a read without fully consuming the data from its buffer, but I can't see that in tests. Any insight on that front? |
Further investigation revealed that there is nothing mysterious about this failure. The @donat turning the reproducer into an integration test turned out to not be feasible, but remote debugging cleared the mystery out of it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@bot-gradle test and merge |
OK, I've already triggered a build for you. |
@jbartok , 👋 is there any chance for this fix to appear in 6.9.x branch? Due to some reasons we can't update our project to 7.x right now (working on it) but this problem is important and affects 6.x branch. @ljacomet , I see you were backporting several fixes to 6.9.2, are there any plans for a new bugfix release? |
Thanks for the info @ljacomet |
Fixes #18316