dissect.cstruct_legacy icon indicating copy to clipboard operation
dissect.cstruct_legacy copied to clipboard

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

Open techthon opened this issue 4 years ago • 0 comments

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

techthon avatar Apr 06 '22 12:04 techthon