From e68cc12e04fb23a0c2c37451c0467dc93d87570f Mon Sep 17 00:00:00 2001 From: David O'Brien Date: Thu, 31 Oct 2002 09:18:48 +0000 Subject: [PATCH] 2002-10-31 David O'Brien * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix signed and unsigned in comparison. Approved by: Alan Modra Message-ID: <20021012185224.Y979@bubble.sa.bigpond.net.au> --- bfd/ChangeLog | 5 +++++ bfd/elf-eh-frame.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ae01880f915..595de41efa4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-10-31 David O'Brien + + * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't mix + signed and unsigned in comparison. + 2002-10-30 Daniel Jacobowitz * coffcode.h: Remove extraneous '\'. diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index e80fc6c9d57..b6d2d2f8087 100644 --- a/bfd/elf-eh-frame.c +++ b/bfd/elf-eh-frame.c @@ -414,7 +414,7 @@ _bfd_elf_discard_section_eh_frame (abfd, info, sec, ehdrsec, /* 64-bit .eh_frame is not supported. */ goto free_no_table; buf += 4; - if ((buf - ehbuf) + hdr.length > sec->_raw_size) + if ((bfd_size_type) (buf - ehbuf) + hdr.length > sec->_raw_size) /* CIE/FDE not contained fully in this .eh_frame input section. */ goto free_no_table; -- 2.30.2