diff options
Diffstat (limited to 'src/format/dwarf/v2')
-rw-r--r-- | src/format/dwarf/v2/form.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/format/dwarf/v2/form.c b/src/format/dwarf/v2/form.c index 8a16887..383bb25 100644 --- a/src/format/dwarf/v2/form.c +++ b/src/format/dwarf/v2/form.c @@ -197,7 +197,11 @@ bool read_dwarf_v2_form_value(const GDwarfFormat *format, const dw_compil_unit_h if (result) { copy_vmpa(&iter, get_mrange_addr(&range)); - advance_vmpa(&iter, offset); + + result = g_binary_content_seek(content, &iter, offset); + + if (!result) + break; tmp = g_binary_content_get_raw_access(content, &iter, 1); result = (tmp != NULL); |