qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stuart Brady <sdbrady@ntlworld.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Typo in get_reloc_expr (dyngen.c)
Date: Mon, 5 Jun 2006 15:04:33 +0100	[thread overview]
Message-ID: <20060605140433.GA18691@miranda.arrow> (raw)

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

Hi,

There's a small bug in get_reloc_expr in dyngen.c.

It should only affect SPARC hosts, but it can't be causing any real
problems, or someone would have noticed it by now.

I'm trying to port QEMU to PA-RISC[0], and needed this code, so it did
actually affect me.  I've attached the (one-line) patch.
-- 
Stuart Brady

[0] http://homepage.ntlworld.com/wholehog/stuart/qemu/guest.html

[-- Attachment #2: dyngen-fix.diff --]
[-- Type: text/plain, Size: 426 bytes --]

diff -ur qemu-head/dyngen.c qemu-new/dyngen.c
--- qemu-head/dyngen.c	2006-06-05 14:37:00.000000000 +0100
+++ qemu-new/dyngen.c	2006-06-05 14:36:49.000000000 +0100
@@ -1196,7 +1196,7 @@
     } else {
 #ifdef HOST_SPARC
         if (sym_name[0] == '.')
-            snprintf(name, sizeof(name),
+            snprintf(name, name_size,
                      "(long)(&__dot_%s)",
                      sym_name + 1);
         else

             reply	other threads:[~2006-06-05 13:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-05 14:04 Stuart Brady [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-06-06 11:52 [Qemu-devel] Typo in get_reloc_expr (dyngen.c) Ben Taylor

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=20060605140433.GA18691@miranda.arrow \
    --to=sdbrady@ntlworld.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 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).