Open
Description
If you look at how composite fields parsing (from schema) algorithm is implemented, you will see that offsets of fields include the overall structure offset WrappedComposite.offset
.
Then, get_raw_pointer(self, key)
does the following:
p = self.pointers[key]
p.enum = None
return Pointer(self.offset + p.offset, p.value, p.size)
I.e. it adds the self.offset
once again resulting in wrong pointer placement.
I fixed this by simply removing the self.offset
term and this change fixed my data parsing pipeline.
Not sure if similar fix is required in WrappedComposite.__getitem__()
.
Metadata
Metadata
Assignees
Labels
No labels