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

Added missing pointer index check #59

Merged
merged 1 commit into from
Dec 14, 2017

Conversation

anxtfux
Copy link
Contributor

@anxtfux anxtfux commented Dec 13, 2017

Added pointer index check. This fixes an IndexOutOfBoundsException when checking for existence of later added fields which are only known on the receiver side (working with different schema versions).

…uctBuilder._pointerFieldIsNull

This fixes an IndexOutOfBoundsException when checking for existence of later added fields which are only known on the receiver side (working with different schema versions)
@dwrensha dwrensha merged commit 906bab7 into capnproto:master Dec 14, 2017
dwrensha added a commit that referenced this pull request Dec 14, 2017
@dwrensha
Copy link
Member

Thanks!

I've added a test case for the reader side in 5b0afb5.

I'm not sure whether the out-of-bounds case cannot actually happen on the builder side, but I'm happy to include this check.

@wridgers
Copy link

Any chance of a 0.1.3 release with this patch?

@dwrensha
Copy link
Member

@wridgers
Copy link

Thanks! :)

anxtfux pushed a commit to anxtfux/capnproto-java that referenced this pull request Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants