From cab7e757019b6b69aa37cbdfd5e4bf487b73cb85 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 4 Mar 2009 14:05:13 +0100 Subject: [PATCH] dwarflint: Check sub_ctx instead of ctx when deciding if header has overrun --- src/dwarflint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dwarflint.c b/src/dwarflint.c index 3e1258186..d23b776e2 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -4651,12 +4651,12 @@ check_line_structural (struct section_data *data, } /* Skip the rest of the header. */ - if (ctx.ptr > program_start) + if (sub_ctx.ptr > program_start) { wr_error (&where, ": header claims that it has a size of %#" PRIx64 ", but in fact it has a size of %#" PRIx64 ".\n", - header_length, ctx.ptr - program_start + header_length); + header_length, sub_ctx.ptr - program_start + header_length); /* Assume that the header lies, and what follows is in fact line number program. */ retval = false; -- 2.47.2