Support PDB ages higher than 15 (#11805)

`GUIDSTR_LEN` is currently set to 34, which gives 32 characters for the PDB GUID, 1 character for the PDB age (which is tacked on the end), and the null terminator. However, PDB ages are stored as a uint32, and can thus have a maximum value of `0xFFFFFFFF`, which requires up to 8 characters. PDB ages over 15 can easily be reached by automatic build processes using incremental linking.
This commit is contained in:
Asher Baker 2018-10-13 17:07:57 +01:00 committed by radare
parent c4795fc766
commit 33dab09e20

View File

@ -72,7 +72,7 @@ typedef struct _PE_RESOURCE {
Pe_image_resource_data_entry *data;
} r_pe_resource;
#define GUIDSTR_LEN 34
#define GUIDSTR_LEN 41
#define DBG_FILE_NAME_LEN 255
typedef struct SDebugInfo {