diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-10 18:08:17 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-10 18:08:17 (GMT) |
commit | eca08119377ce38232581d444f48e28e0d02692b (patch) | |
tree | 5114641c42dfe8505bc92e762ac2c67955f25327 /plugins/dex/dex-int.c | |
parent | e5ca6221a35ab26d170dbdfd4ec52e010864cf99 (diff) |
Linked all used Dalvik strings with their origin.
Diffstat (limited to 'plugins/dex/dex-int.c')
-rw-r--r-- | plugins/dex/dex-int.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/dex/dex-int.c b/plugins/dex/dex-int.c index e3121b6..287ec7a 100644 --- a/plugins/dex/dex-int.c +++ b/plugins/dex/dex-int.c @@ -145,6 +145,7 @@ bool read_dex_string_id_item(const GDexFormat *format, vmpa2t *pos, string_id_it * * * Paramètres : format = informations chargées à consulter. * * pos = position de début de lecture. [OUT] * +* inter = position intermédiaire à conserver. [OUT] * * str_data = structure lue à retourner. [OUT] * * * * Description : Procède à la lecture de proriétés de chaîne DEX. * @@ -155,7 +156,7 @@ bool read_dex_string_id_item(const GDexFormat *format, vmpa2t *pos, string_id_it * * ******************************************************************************/ -bool read_dex_string_data_item(const GDexFormat *format, vmpa2t *pos, string_data_item *str_data) +bool read_dex_string_data_item(const GDexFormat *format, vmpa2t *pos, vmpa2t *inter, string_data_item *str_data) { bool result; /* Bilan à retourner */ GBinContent *content; /* Contenu binaire à lire */ @@ -166,6 +167,9 @@ bool read_dex_string_data_item(const GDexFormat *format, vmpa2t *pos, string_dat if (result) { + if (inter != NULL) + copy_vmpa(inter, pos); + str_data->data = g_binary_content_get_raw_access(content, pos, str_data->utf16_size); result = (str_data->data != NULL); } |