From: Petr Machata Date: Wed, 4 Mar 2009 13:05:13 +0000 (+0100) Subject: dwarflint: Check sub_ctx instead of ctx when deciding if header has overrun X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cab7e757019b6b69aa37cbdfd5e4bf487b73cb85;p=thirdparty%2Felfutils.git dwarflint: Check sub_ctx instead of ctx when deciding if header has overrun --- 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;