mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 14:54:54 +00:00
Parse SHORT PDB type
This commit is contained in:
parent
90bc1f37bc
commit
995409bfe2
@ -894,6 +894,14 @@ static void free_sval(SVal *val)
|
||||
R_FREE(val->name_or_val);
|
||||
break;
|
||||
}
|
||||
case eLF_SHORT:
|
||||
{
|
||||
SVal_LF_SHORT *lf_short;
|
||||
lf_short = (SVal_LF_SHORT *) val->name_or_val;
|
||||
R_FREE(lf_short->name.name);
|
||||
R_FREE(val->name_or_val);
|
||||
break;
|
||||
}
|
||||
case eLF_USHORT:
|
||||
{
|
||||
SVal_LF_USHORT *lf_ushort;
|
||||
@ -1610,6 +1618,15 @@ static int parse_sval(SVal *val, unsigned char *leaf_data, unsigned int *read_by
|
||||
memcpy(val->name_or_val, &lf_ulong, sizeof(SVal_LF_ULONG));
|
||||
break;
|
||||
}
|
||||
case eLF_SHORT:
|
||||
{
|
||||
SVal_LF_SHORT lf_short;
|
||||
READ(*read_bytes, 2, len, lf_short.value, leaf_data, short);
|
||||
parse_sctring(&lf_short.name, leaf_data, read_bytes, len);
|
||||
val->name_or_val = malloc(sizeof(SVal_LF_SHORT));
|
||||
memcpy(val->name_or_val, &lf_short, sizeof(SVal_LF_SHORT));
|
||||
break;
|
||||
}
|
||||
case eLF_USHORT:
|
||||
{
|
||||
SVal_LF_USHORT lf_ushort;
|
||||
|
Loading…
x
Reference in New Issue
Block a user