libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] [PATCH] Check mapped ELF file headers


From: Arun Sharma
Subject: Re: [Libunwind-devel] [PATCH] Check mapped ELF file headers
Date: Mon, 29 Nov 2010 11:13:36 -0800

On Wed, Nov 17, 2010 at 9:14 PM, Zachary T Welch
<address@hidden> wrote:
> +  ehdr = ei->image;
> +  if (strncmp(ehdr->e_ident, "\x7f" "ELF", 4) != 0)
> +    return -1;

This seems to cause a lot of compiler warnings that look like:

./elfxx.h: In function ‘elf_map_image’:
./elfxx.h:70: warning: pointer targets in passing argument 1 of
‘strlen’ differ in signedness
/usr/include/string.h:397: note: expected ‘const char *’ but argument
is of type ‘unsigned char *’

 -Arun



reply via email to

[Prev in Thread] Current Thread [Next in Thread]