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

Append field does not add the new field at the end of the stucture when there are empty bytes in the structure defition #5955

Open
xusheng6 opened this issue Sep 26, 2024 · 0 comments

Comments

@xusheng6
Copy link
Member

Repro steps:

  1. Define an empty structure, set its size to 0x10
  2. Append a field to it
  3. Observe the field is added at the start of the structure, rather than at the end of it

Screenshot 2024-09-26 at 12 50 39 PM

Note this works when all of the bytes are occupied by the structure fields. It seems like that we always append the field to the next not occupied byte. Is this intended? I think we should still add it to the end of the structure

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