From: Tom Musta <tommusta@gmail.com>
To: qemu-devel@nongnu.org
Cc: tommusta@gmail.com, qemu-ppc@nongnu.org
Subject: [Qemu-devel] [PATCH] target-ppc: Fix Temporary Variable Leak in bctar
Date: Wed, 4 Jun 2014 12:26:02 -0500 [thread overview]
Message-ID: <1401902762-29452-1-git-send-email-tommusta@gmail.com> (raw)
Fix a temporary variable leak detected in the bctar instruction:
Opcode 13 10 11 (4d910460) leaked temporaries
Signed-off-by: Tom Musta <tommusta@gmail.com>
---
target-ppc/translate.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 2de362c..3a8d702 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -3891,7 +3891,7 @@ static inline void gen_bcond(DisasContext *ctx, int type)
gen_update_nip(ctx, ctx->nip);
tcg_gen_exit_tb(0);
}
- if (type == BCOND_LR || type == BCOND_CTR) {
+ if (type == BCOND_LR || type == BCOND_CTR || type == BCOND_TAR) {
tcg_temp_free(target);
}
}
--
1.7.1
next reply other threads:[~2014-06-04 17:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-04 17:26 Tom Musta [this message]
2014-06-04 21:18 ` [Qemu-devel] [Qemu-ppc] [PATCH] target-ppc: Fix Temporary Variable Leak in bctar Alexander Graf
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=1401902762-29452-1-git-send-email-tommusta@gmail.com \
--to=tommusta@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).