fox-it / dissect.cstruct_legacy

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

Issue with colors in output #16

Open Beercow opened 4 years ago

Beercow commented 4 years ago

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.