summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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);