diff options
Diffstat (limited to 'plugins/mobicore/mclf.c')
-rw-r--r-- | plugins/mobicore/mclf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mobicore/mclf.c b/plugins/mobicore/mclf.c index c456c04..245508f 100644 --- a/plugins/mobicore/mclf.c +++ b/plugins/mobicore/mclf.c @@ -212,6 +212,7 @@ static void g_mclf_format_refine_portions(const GMCLFFormat *format, GBinPortion { GBinPortion *new; /* Nouvelle portion définie */ char desc[MAX_PORTION_DESC]; /* Description d'une portion */ + phys_t length; /* Taille de portion globale */ vmpa2t addr; /* Emplacement dans le binaire */ /* Segment de code */ @@ -249,7 +250,8 @@ static void g_mclf_format_refine_portions(const GMCLFFormat *format, GBinPortion sprintf(desc, "%s \"%s\"", _("Segment"), "sig"); g_binary_portion_set_desc(new, desc); - init_vmpa(&addr, G_BIN_FORMAT(format)->length - 521, VMPA_NO_VIRTUAL); /* FIXME */ + length = g_binary_content_compute_size(G_BIN_FORMAT(format)->content); + init_vmpa(&addr, length - 521, VMPA_NO_VIRTUAL); /* FIXME */ g_binary_portion_set_values(new, &addr, 521); g_binary_portion_set_rights(new, PAC_READ | PAC_WRITE); |