fox-it / dissect.cstruct_legacy

A no-nonsense c-like structure parsing library for Python
MIT License
239 stars 25 forks source link

For multi-dimensional arrays, it cannot be parsed normally, and an error is reported #21

Open techthon opened 2 years ago

techthon commented 2 years ago
struct some_struct {
    uint8   field_1;
    char    field_2[2][SOME_CONSTANT];
    char    field_3[field_1 & 1 * 5];  // Some random expression to calculate array length
    Example field_4[2];
};

char field_2 [2][SOME_CONSTANT]; image