This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [COMMIT PATCH] Avoid invalid pointer to pointer conversions.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 11 Mar 2013 15:23:39 +0100
- Subject: Re: [COMMIT PATCH] Avoid invalid pointer to pointer conversions.
- References: <20130311122341.26427.16325.stgit@brno.lan>
On Mon, 11 Mar 2013 13:23:41 +0100, Pedro Alves wrote:
> gdb/
> 2013-03-11 Pedro Alves <palves@redhat.com>
>
> * charset.c (convert_between_encodings): Don't cast between
> different pointer to pointer types. Instead, make the 'inp' local
> be of the type iconv expects.
> (wchar_iterate): Don't cast between different pointer to pointer
> types. Instead, use new pointer local of the type iconv expects.
> * target.c (target_read_stralloc, target_fileio_read_stralloc):
> Add new local of type char pointer, and use it to get a
> char/string view of the byte buffer, instead of casting between
> pointer to pointer types.
Confiming the GCC warnings on CentOS release 5.9 x86_64 and therefore the
"Build regression on RHEL-5" mails have been fixed.
Thanks,
Jan