This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [binutils-gdb] Prevent a seg-fault in gprof when parsing a corrupt
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: nickc at sourceware dot org (Nick Clifton)
- Cc: binutils at sourceware dot org
- Date: Tue, 23 Aug 2016 16:16:20 +0200 (CEST)
- Subject: Re: [binutils-gdb] Prevent a seg-fault in gprof when parsing a corrupt
- Authentication-results: sourceware.org; auth=none
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