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

Fixes a bug that caused the binary reader to prematurely assume EOF had been reached in an e-expression. #982

Merged

Conversation

tgregg
Copy link
Contributor

@tgregg tgregg commented Oct 29, 2024

Description of changes:
With the addition of e-expressions, this new code path is exercised. Before e-expressions, an optimization within the reader would have already filled the values in the container, if possible, causing a previous branch to be taken. I added a TODO to apply this optimization to e-expressions too, but that's out of scope for this PR.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@jobarr-amzn jobarr-amzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ultimately I'd like to see comments on prepareScalar()- I haven't understood it well enough to add the comments myself. Not blocking.

@tgregg tgregg merged commit 69951dd into ion-11-encoding Oct 30, 2024
16 of 17 checks passed
@tgregg tgregg deleted the ion-11-encoding-fix-preparescalar-in-eexpression branch October 30, 2024 00:22
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.

2 participants