Skip to content

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

@xusheng6

Description

@xusheng6

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: UIIssue needs changes to the user interfaceEffort: TrivialIssues require < 1 day of workImpact: LowIssue is a papercut or has a good, supported workaroundUI: TypesIssues with the Types widget

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions