Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Fix encoding alignment logic. #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vincenospam
Copy link

The newEncoder method is recursive, but alignment logic must be based on
"global" absolute position. This FIX allows recursive calls to set the
initial position.

Unit tests added to verify the problem and fix.

The problem was discovered for nested containers where the start of the
nested container can be on a 4-byte-aligned (but not 8-byte-aligned) boundary.

The newEncoder method is recursive, but alignment logic must be based on
"global" absolute position. This FIX allows recursive calls to set the
initial position.

Unit tests added to very the problem and fix.

The problem was discovered for nested containers where the start of the
nested container can be on a 4-byte-aligned (but not 8-byte-aligned) boundary.
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.

2 participants