From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL] Memory core integer overflow fix
Date: Thu, 15 Sep 2011 14:10:15 -0500 [thread overview]
Message-ID: <4E724D97.4020806@codemonkey.ws> (raw)
In-Reply-To: <4E70A29F.1010105@redhat.com>
On 09/14/2011 07:48 AM, Avi Kivity wrote:
> Please pull from
>
> git://github.com/avikivity/qemu.git memory/core
>
> to receive a core fix for an integer overflow problem hitting ppc:
>
> David Gibson (1):
> Fix subtle integer overflow bug in memory API
Pulled. Thanks.
Regards,
Anthony Liguori
>
> memory.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/memory.c b/memory.c
> index 57f0fa4..101b67c 100644
> --- a/memory.c
> +++ b/memory.c
> @@ -55,8 +55,8 @@ static AddrRange addrrange_shift(AddrRange range, int64_t delta)
>
> static bool addrrange_intersects(AddrRange r1, AddrRange r2)
> {
> - return (r1.start >= r2.start && r1.start < r2.start + r2.size)
> - || (r2.start >= r1.start && r2.start < r1.start + r1.size);
> + return (r1.start >= r2.start && (r1.start - r2.start) < r2.size)
> + || (r2.start >= r1.start && (r2.start - r1.start) < r1.size);
> }
>
> static AddrRange addrrange_intersection(AddrRange r1, AddrRange r2)
>
prev parent reply other threads:[~2011-09-15 19:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-14 12:48 [Qemu-devel] [PULL] Memory core integer overflow fix Avi Kivity
2011-09-15 19:10 ` Anthony Liguori [this message]
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=4E724D97.4020806@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.