From: Olaf Hering <olaf@aepfle.de>
To: xen-devel@lists.xensource.com
Subject: [PATCH] tools/misc: fix array access in xen-hvmctx.c
Date: Fri, 30 Mar 2012 15:45:07 +0200 [thread overview]
Message-ID: <769fb4057e369d7e102b.1333115107@probook.site> (raw)
# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# Date 1333114977 -7200
# Node ID 769fb4057e369d7e102b569491861ac5fe9f007d
# Parent 14609be41f369c26e759c5d63cc0d2be2fc5b9b6
tools/misc: fix array access in xen-hvmctx.c
xen-hvmctx.c: In function ‘main’:
xen-hvmctx.c:126:39: error: array subscript is above array bounds
xen-hvmctx.c:126:25: error: array subscript is above array bounds
Signed-off-by: Olaf Hering <olaf@aepfle.de>
diff -r 14609be41f36 -r 769fb4057e36 tools/misc/xen-hvmctx.c
--- a/tools/misc/xen-hvmctx.c
+++ b/tools/misc/xen-hvmctx.c
@@ -121,7 +121,7 @@ static void dump_fpu(void *p)
i, r->mm[i].hi, r->mm[i].lo,
r->mm[i].pad[2], r->mm[i].pad[1], r->mm[i].pad[0]);
- for ( i = 0 ; i < 16 ; i++ )
+ for ( i = 0 ; i < 15 ; i++ )
printf(" xmm%2.2i 0x%16.16"PRIx64"%16.16"PRIx64"\n",
i, r->xmm[i].hi, r->xmm[i].lo);
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next reply other threads:[~2012-03-30 13:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-30 13:45 Olaf Hering [this message]
2012-03-30 14:06 ` [PATCH] tools/misc: fix array access in xen-hvmctx.c Tim Deegan
2012-04-02 15:01 ` Ian Jackson
2012-04-12 8:02 ` Tim Deegan
2012-04-18 11:53 ` Tim Deegan
2012-04-24 17:39 ` Ian Jackson
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=769fb4057e369d7e102b.1333115107@probook.site \
--to=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.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).