binaryninja-api
binaryninja-api copied to clipboard
Append field does not add the new field at the end of the stucture when there are empty bytes in the structure defition
Repro steps:
- Define an empty structure, set its size to 0x10
- Append a field to it
- Observe the field is added at the start of the structure, rather than at the end of it
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