From: Joel Brobecker <brobecker@adacore.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: ralf.corsepius@rtems.org, gdb-patches@sourceware.org,
Joel.Sherrill@oarcorp.com
Subject: Re: sparc-tdep.c: __builtin___memcpy_chk overflows destination buffer
Date: Thu, 17 Sep 2009 15:43:00 -0000 [thread overview]
Message-ID: <20090917154335.GK8910@adacore.com> (raw)
In-Reply-To: <200909170624.n8H6OkDh021445@brahms.sibelius.xs4all.nl>
> You sent the diff as bas64 encoded MIME attachment which makes it
> difficult for me to review your diff. Can you send it inline or as a
> normal 7-bit ASCII encoded attachments?
Here is the patch. I don't really understand what the problem is,
however, and I'm quite hesitant about this patch. I wasn't able to
reproduce the build failure, so couldn't investigate any further.
2009-09-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* sparc-tdep.c (sparc32_store_return_value): Use size_t as
return type of TYPE_LENGTH(type).
diff -Naur gdb-6.8.91.orig/gdb/sparc-tdep.c gdb-6.8.91/gdb/sparc-tdep.c
--- gdb-6.8.91.orig/gdb/sparc-tdep.c 2009-09-07 19:52:41.000000000 +0200
+++ gdb-6.8.91/gdb/sparc-tdep.c 2009-09-17 03:43:48.000000000 +0200
@@ -1100,7 +1100,7 @@
sparc32_store_return_value (struct type *type, struct regcache *regcache,
const gdb_byte *valbuf)
{
- int len = TYPE_LENGTH (type);
+ size_t len = TYPE_LENGTH (type);
gdb_byte buf[8];
gdb_assert (!sparc_structure_or_union_p (type));
--
Joel
next prev parent reply other threads:[~2009-09-17 15:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-17 2:36 Ralf Corsepius
2009-09-17 6:25 ` Mark Kettenis
2009-09-17 15:43 ` Joel Brobecker [this message]
2009-09-17 18:05 ` Jan Kratochvil
2009-09-18 5:01 ` Ralf Corsepius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090917154335.GK8910@adacore.com \
--to=brobecker@adacore.com \
--cc=Joel.Sherrill@oarcorp.com \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
--cc=ralf.corsepius@rtems.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox