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

Fixed size serialization of enumerated values can result in spurious data being serialized. #4

Open
chaosape opened this issue Jun 13, 2017 · 0 comments

Comments

@chaosape
Copy link
Collaborator

From what I have gathered, all enumerated types are serialized as signed integers. The mechanism for serializing an enum field uses "copyToBuffer" to copy four bytes, starting at the address of this field, into a destination buffer. Spurious data can occur in the serialization because the enum field may occupy less than four bytes in memory and, thus, some of the data in the signed integer serializing the field value may contain data from values in memory surrounding this field.

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

No branches or pull requests

1 participant