fox-it/dissect.cstruct_legacy

Issue with colors in output

Beercow opened this issue · 0 comments

When a char is passed a size of 0, the colors in the hex output do not come out correctly.

Structure example:

typedef struct _Quarantine_File_Info {
char Header[7];
byte Data_Type1;
int32 Hash_Size;
char SHA1[Hash_Size]; //need to fix for wchar
char Unknown[10];
byte Data_Type2;
int32 QFS_Size;
char Quarantine_File_Size[QFS_Size];
} Quarantine_File_Info;

02E60BB4-6ABA-4A34-9CBF-2F5070CFC247

There shouldn’t be any blue in the output but everything after the 0 char is colored wrong.