qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PULL 01/16] fpu/softfloat: int_to_float ensure r fully initialised
Date: Tue, 15 May 2018 15:06:52 +0100	[thread overview]
Message-ID: <20180515140707.15957-2-peter.maydell@linaro.org> (raw)
In-Reply-To: <20180515140707.15957-1-peter.maydell@linaro.org>

From: Alex Bennée <alex.bennee@linaro.org>

Reported by Coverity (CID1390635). We ensure this for uint_to_float
later on so we might as well mirror that.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 fpu/softfloat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fpu/softfloat.c b/fpu/softfloat.c
index 8401b37bd4..b39c0c6fbb 100644
--- a/fpu/softfloat.c
+++ b/fpu/softfloat.c
@@ -1525,7 +1525,7 @@ FLOAT_TO_UINT(64, 64)
 
 static FloatParts int_to_float(int64_t a, float_status *status)
 {
-    FloatParts r;
+    FloatParts r = {};
     if (a == 0) {
         r.cls = float_class_zero;
         r.sign = false;
-- 
2.17.0

  reply	other threads:[~2018-05-15 14:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-15 14:06 [Qemu-devel] [PULL 00/16] target-arm queue Peter Maydell
2018-05-15 14:06 ` Peter Maydell [this message]
2018-05-15 14:06 ` [Qemu-devel] [PULL 02/16] fpu/softfloat: Don't set Invalid for float-to-int(MAXINT) Peter Maydell
2018-05-15 14:06 ` [Qemu-devel] [PULL 03/16] target/arm: Fix fp_status_f16 tininess before rounding Peter Maydell
2018-05-15 14:06 ` [Qemu-devel] [PULL 04/16] target/arm: Implement FMOV (general) for fp16 Peter Maydell
2018-05-15 14:06 ` [Qemu-devel] [PULL 05/16] target/arm: Early exit after unallocated_encoding in disas_fp_int_conv Peter Maydell
2018-05-15 14:06 ` [Qemu-devel] [PULL 06/16] target/arm: Implement FCVT (scalar, integer) for fp16 Peter Maydell
2018-05-15 14:06 ` [Qemu-devel] [PULL 07/16] target/arm: Implement FCVT (scalar, fixed-point) " Peter Maydell
2018-05-15 14:06 ` [Qemu-devel] [PULL 08/16] target/arm: Introduce and use read_fp_hreg Peter Maydell
2018-05-15 14:07 ` [Qemu-devel] [PULL 09/16] target/arm: Implement FP data-processing (2 source) for fp16 Peter Maydell
2018-05-15 14:07 ` [Qemu-devel] [PULL 10/16] target/arm: Implement FP data-processing (3 " Peter Maydell
2018-05-15 14:07 ` [Qemu-devel] [PULL 11/16] target/arm: Implement FCMP " Peter Maydell
2018-05-15 14:07 ` [Qemu-devel] [PULL 12/16] target/arm: Implement FCSEL " Peter Maydell
2018-05-15 14:07 ` [Qemu-devel] [PULL 13/16] target/arm: Implement FMOV (immediate) " Peter Maydell
2018-05-15 14:07 ` [Qemu-devel] [PULL 14/16] target/arm: Fix sqrt_f16 exception raising Peter Maydell
2018-05-15 14:07 ` [Qemu-devel] [PULL 15/16] sdcard: Correct CRC16 offset in sd_function_switch() Peter Maydell
2018-05-15 14:07 ` [Qemu-devel] [PULL 16/16] tcg: Optionally log FPU state in TCG -d cpu logging Peter Maydell
2018-05-15 15:00 ` [Qemu-devel] [PULL 00/16] target-arm queue Peter Maydell

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=20180515140707.15957-2-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --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).