Skip to content

Conversation

@bobsira
Copy link
Contributor

@bobsira bobsira commented Aug 7, 2025

The fix involved removing an unnecessary increment (offset++) before advancing the buffer pointer in the ParseNumber() function of your JSON parser. Previously, after parsing a numeric value, the code advanced the offset one extra character, which caused the parser to skip over important JSON structural characters like commas (,) or closing braces (}) that separate or terminate object members. This led to errors when parsing numbers that were not the last member in an object.

By eliminating the extra increment, the parser now correctly leaves the structural character in place for the next parsing step, ensuring proper handling of multi-digit numbers and correct traversal of JSON objects regardless of the order of their members. This change makes the parser robust and compliant with standard JSON syntax, preventing premature end-of-object errors.

Copy link
Contributor

@mloskot mloskot left a comment

Choose a reason for hiding this comment

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

I've tested this fix as part of testing #215 (comment), where I confirmed

The fix for ordering of the waitInSeconds seem to work.

Copy link
Contributor

@CharityKathure CharityKathure left a comment

Choose a reason for hiding this comment

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

LGTM

@mloskot
Copy link
Contributor

mloskot commented Aug 11, 2025

Forgive me the nudge, but can we have this merged and released ASAP?

I do need builds of my images stop suffering from this issue 😊
image

@bobsira bobsira merged commit 1026ba7 into main Aug 12, 2025
7 checks passed
@bobsira
Copy link
Contributor Author

bobsira commented Aug 13, 2025

@mloskot this is now merged. We are aiming for a release in a couple of days.

@mloskot
Copy link
Contributor

mloskot commented Aug 13, 2025

@bobsira Awesome, thank you!

@bobsira
Copy link
Contributor Author

bobsira commented Aug 18, 2025

https://github.com/microsoft/windows-container-tools/releases/tag/v2.1.3 we have a release with this change. Cheers!

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.

7 participants