From 99de568b7d12793deeccbe4159afb6607aff40b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Tue, 15 May 2018 21:49:19 -0400 Subject: [PATCH] fpu/softfloat: int_to_float ensure r fully initialised Reported by Coverity (CID1390635). We ensure this for uint_to_float later on so we might as well mirror that. Backports commit a5a5f5e2e437db6c19164b734f838a7bf9e0c5ec from qemu --- qemu/fpu/softfloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/fpu/softfloat.c b/qemu/fpu/softfloat.c index 0da2a954..9ceb448b 100644 --- a/qemu/fpu/softfloat.c +++ b/qemu/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 = {0}; if (a == 0) { r.cls = float_class_zero; r.sign = false;