Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Conversation

@tgregg
Copy link
Contributor

@tgregg tgregg commented Jun 18, 2025

Description of changes:

The following is a GitHub Actions workflow for a commit that includes only the new test added by this PR. The tests are hanging forever. https://github.com/amazon-ion/ion-dotnet/actions/runs/15742521485/job/44371188161

The changes to the source in this PR fix those potential infinite loops by throwing UnexpectedEofException when CharSeqEof (a constant with value -1) is encountered in the middle of a token that is expected to be complete. Before, TextConstants.TokenEof (a constant with value 0) was checked, causing a loop when the stream produced -1 to indicate it had reached its end.


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

@tgregg tgregg merged commit edaff75 into master Jun 18, 2025
4 checks passed
@tgregg tgregg deleted the text-eof-checks-attempt2 branch June 18, 2025 20:50
@tgregg tgregg mentioned this pull request Jun 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants