From: Gerd Hoffmann <kraxel@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: perrier vincent <clownix@clownix.net>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] segfault in memcmp
Date: Mon, 08 Jun 2015 13:36:28 +0200 [thread overview]
Message-ID: <1433763388.5046.32.camel@redhat.com> (raw)
In-Reply-To: <20150608093125.GF30104@stefanha-thinkpad.redhat.com>
On Mo, 2015-06-08 at 10:31 +0100, Stefan Hajnoczi wrote:
> On Fri, Jun 05, 2015 at 05:19:53PM -0500, perrier vincent wrote:
> > Using a very old guest (lenny) with spice and vga=cirrus, I have
> > a segfault:
Hmm, doesn't reproduce on master (booting i386 lenny install iso).
Which qemu version is this?
> > FILE: ui/spice-display.c
> > FUNCTION: qemu_spice_create_update
> > LINE: if (memcmp(guest + yoff + xoff,
> > mirror + yoff + xoff,
> > bw * bpp) == 0)
> >
> > The address of mirror + yoff + xoff is out of boundaries.
> >
> > I use the following to avoid the crash:
> >
> > ...
> > img_get_stride = pixman_image_get_stride(ssd->mirror);
> > img_height = pixman_image_get_height(ssd->mirror);
> > img_max = img_height * img_get_stride;
> > ...
> > if (yoff > img_max)
> > {
> > if (dirty_top[blk] == -1)
> > dirty_top[blk] = y;
> > }
I'm wondering how you end up with yoff being ouf of boundaries in the
first place ...
cheers,
Gerd
prev parent reply other threads:[~2015-06-08 11:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-05 22:19 [Qemu-devel] segfault in memcmp perrier vincent
2015-06-08 9:31 ` Stefan Hajnoczi
2015-06-08 11:36 ` Gerd Hoffmann [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=1433763388.5046.32.camel@redhat.com \
--to=kraxel@redhat.com \
--cc=clownix@clownix.net \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).