summaryrefslogtreecommitdiff
path: root/plugins/readdex
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-10-09 12:01:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-10-09 12:01:00 (GMT)
commitf3e84729588f7e2e518f82116e908455d957f9ca (patch)
treeed139dfd23c7436b5af4519a022c3945519bd167 /plugins/readdex
parent0b6e87de0d4313f8ef31907bc48ce4d7f7749738 (diff)
Loaded Dex strings for annotations with the proper length.
Diffstat (limited to 'plugins/readdex')
-rw-r--r--plugins/readdex/ids.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/readdex/ids.c b/plugins/readdex/ids.c
index 9319b7c..71e8569 100644
--- a/plugins/readdex/ids.c
+++ b/plugins/readdex/ids.c
@@ -123,12 +123,16 @@ bool annotate_dex_string_ids(const GDexFormat *format, GtkStatusStack *status)
/* Description de la chaƮne : contenu */
- copy_vmpa(&start, &item_pos);
- instr = g_raw_instruction_new_array(content, MDS_8_BITS, leb_size, &item_pos, endian);
+ if (length > 0)
+ {
+ copy_vmpa(&start, &item_pos);
+ instr = g_raw_instruction_new_array(content, MDS_8_BITS, length, &item_pos, endian);
+
+ g_raw_instruction_mark_as_string(G_RAW_INSTRUCTION(instr), true);
- g_raw_instruction_mark_as_string(G_RAW_INSTRUCTION(instr), true);
+ ADD_STR_AS_SYM(format, symbol, instr);
- ADD_STR_AS_SYM(format, symbol, instr);
+ }
gtk_status_stack_update_activity_value(status, msg, 1);