public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: [binutils-gdb] Prevent a seg-fault in gprof when parsing a corrupt
       [not found] <20160822131704.59438.qmail@sourceware.org>
@ 2016-08-23 14:16 ` Ulrich Weigand
  2016-08-23 14:42   ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Weigand @ 2016-08-23 14:16 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils

Nick Clifton wrote:

> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4ca0333f073cb4d86fe9d4e64c9dfdca5deba1e0
> 
> commit 4ca0333f073cb4d86fe9d4e64c9dfdca5deba1e0
> Author: Nick Clifton <nickc@redhat.com>
> Date:   Mon Aug 22 14:16:26 2016 +0100
> 
>     Prevent a seg-fault in gprof when parsing a corrupt core file.
>     
>     	PR gprof/20499
>     	* corefile.c (core_create_syms_from): Avoid walking off the end of
>     	the symbol table.

This causes 

cc1: warnings being treated as errors
gprof/corefile.c: In function 'core_create_syms_from':
gprof/corefile.c:557: warning: comparison between signed and unsigned
make[4]: *** [corefile.o] Error 1

on my system (RHEL 5 using the GCC 4.1 system compiler).

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [binutils-gdb] Prevent a seg-fault in gprof when parsing a corrupt
  2016-08-23 14:16 ` [binutils-gdb] Prevent a seg-fault in gprof when parsing a corrupt Ulrich Weigand
@ 2016-08-23 14:42   ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2016-08-23 14:42 UTC (permalink / raw)
  To: Ulrich Weigand, Nick Clifton; +Cc: binutils

Hi Ulrich,

> gprof/corefile.c: In function 'core_create_syms_from':
> gprof/corefile.c:557: warning: comparison between signed and unsigned

Sorry about that.  This should be fixed now.

Cheers
  Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-23 14:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20160822131704.59438.qmail@sourceware.org>
2016-08-23 14:16 ` [binutils-gdb] Prevent a seg-fault in gprof when parsing a corrupt Ulrich Weigand
2016-08-23 14:42   ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).