Skip to content

VSA not working as expected. #10

Description

@Hadatko

Demo:

struct A
{
    uint8 a;
    uint8 b[];
};

The expected behavior of:
cparser.A(b'\x01\x02\x03\x04\x00\x00')
should be

struct A:
- a: 0x1
- b: [2, 3, 4, 0, 0]

current

struct A:
- a: 0x1
- b: [2, 3, 4]

It should take rest of binary data which are at the end of blob (here 5bytes) and count how much numbers he can take (5/1{uint8}) and than convert data at the end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions