summaryrefslogtreecommitdiff
path: root/plugins/readdex
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-10 18:08:17 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-10 18:08:17 (GMT)
commiteca08119377ce38232581d444f48e28e0d02692b (patch)
tree5114641c42dfe8505bc92e762ac2c67955f25327 /plugins/readdex
parente5ca6221a35ab26d170dbdfd4ec52e010864cf99 (diff)
Linked all used Dalvik strings with their origin.
Diffstat (limited to 'plugins/readdex')
-rw-r--r--plugins/readdex/ids.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/plugins/readdex/ids.c b/plugins/readdex/ids.c
index 82d17f4..702e071 100644
--- a/plugins/readdex/ids.c
+++ b/plugins/readdex/ids.c
@@ -253,9 +253,6 @@ bool annotate_dex_string_ids(const GDexFormat *format, GPreloadInfo *info, GtkSt
vmpa2t item_pos; /* Position d'un élément */
uleb128_t length; /* Taille de la chaîne en cours*/
GArchInstruction *instr; /* Instruction décodée */
- bool inserted; /* Bilan d'une insertion */
- const mrange_t *range; /* Espace occupé par une chaîne*/
- GBinSymbol *symbol; /* Symbole à intégrer */
content = g_binary_format_get_content(G_BIN_FORMAT(format));
@@ -333,16 +330,7 @@ bool annotate_dex_string_ids(const GDexFormat *format, GPreloadInfo *info, GtkSt
{
g_raw_instruction_mark_as_string(G_RAW_INSTRUCTION(instr), true);
- inserted = g_preload_info_add_instruction(info, instr);
-
- if (inserted)
- {
- range = g_arch_instruction_get_range(instr);
-
- symbol = g_binary_symbol_new(range, STP_RO_STRING);
- g_binary_format_add_symbol(bformat, symbol);
-
- }
+ g_preload_info_add_instruction(info, instr);
}