From: David O'Brien Date: Thu, 31 Oct 2002 09:33:40 +0000 (+0000) Subject: 2002-10-31 David O'Brien X-Git-Tag: binutils-2_13_1~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e06ffc1416e1a09969f73b24f6e9e08ca91e2386;p=thirdparty%2Fbinutils-gdb.git 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> --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cf89a01cef6..37652df3ce8 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 * bfd-in2.h: Regenerated. diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c index 713dc8f11d1..62226c580c4 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;