diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-03-25 09:43:57 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-03-25 09:43:57 (GMT) |
commit | 8e275f286138db88140d1643d1008f130ba7f484 (patch) | |
tree | eea120992ae5a9c2a341e3bee336620ecdc65a6f /plugins/ropgadgets | |
parent | fd0df8f884336fc69bd0938453f9712c166f08c8 (diff) |
Avoided stack overflows with empty dynamic parameters.
Diffstat (limited to 'plugins/ropgadgets')
-rw-r--r-- | plugins/ropgadgets/select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ropgadgets/select.c b/plugins/ropgadgets/select.c index 019855b..3e5e453 100644 --- a/plugins/ropgadgets/select.c +++ b/plugins/ropgadgets/select.c @@ -1530,7 +1530,7 @@ static void add_new_gadgets_for_category(GExeFormat *format, GtkComboBoxText *co { instr = chain->instrs[j]; - line = g_buffer_line_new((mrange_t []){ { { 0 }, 0 } }, BLC_ASSEMBLY); + line = g_buffer_line_new(UNUSED_MRANGE_PTR, BLC_ASSEMBLY); g_line_generator_print(G_LINE_GENERATOR(instr), line, -1, 0, content); if (j == 0) |