From patchwork Sat May 12 00:42:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135586 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1563639lji; Fri, 11 May 2018 17:43:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqASAEi09IrhkojFyb6gqQApxWzmsL/ljUWlk6NPfwQ8NTznMEORHKWQ2fZlKNCxC3ISgDN X-Received: by 2002:a37:6d4:: with SMTP id 203-v6mr216104qkg.325.1526085828405; Fri, 11 May 2018 17:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526085828; cv=none; d=google.com; s=arc-20160816; b=XXbTCd7/Qyw3+SeLUr7n/JwPH27AwtFlzXGr0F76pWDzUtLy+YCTPrff3G1E7Cmz5Z RdMWvleudz8/syPKbE61kiztbwX3Vbbxg6a8Vbg2T2zSnfoVeMR9FyVkIOnfrrVgSXrJ T1OQeqU3u2DGiQzWcfe5CWyYZjANMXKnlc2h8pvINMs0Jrqj0M0VZ3Zt2OudJBvaP0aZ dow0K4mjrf5uUZfpZEtTUMpbCRyH7hfg+LQW0IoV7rGkT1fYH4jC3DQiVpRbQDmj6Dwb kbrvgukyV1ctMbVrS/EpkbrSRgv/nJMYi35BD4CXXg6ftLgiSgSUdLODUjOLjQr2d/13 kY5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=gTm+bwNj3Vmeeh+y4VTHeITGzCj9TBpSwD1rhJ16Jh8=; b=dLfNZeskNySZ3eAeQkbcrmtzlNSgorKBEAozHilZgiIm4bKd/tgu5mRvTQdOK9OE9o XeVC+aICGgzO5WxxbFOZoohYQ/kyiXlIT1MYcETSHLpc2ci30P7UIczQG5B6zvQFcCZ9 5Wf0XRUtwsNBUh4WqunVqLHnTRRypfIk4hb6SAunZO7np1/VBqrUiwoH9FRaOVm2IYtb /9hfHIPO9OT2yJskmxLPSLUK+kCiZhaYm7sUWYp7wXgNCbN7YwrtM/DerkZOBbz9EoEz FWhsP4PKSq+B5P7vQsCL5hKFoLzrt+CFuTMPkBHJ1h5hjs8WGnGhUvRI7+2YxmZRnJ1e h2jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ig/YOY99; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q27-v6si2876412qtj.288.2018.05.11.17.43.48 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 11 May 2018 17:43:48 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Ig/YOY99; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHIdX-0003wn-RZ for patch@linaro.org; Fri, 11 May 2018 20:43:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHId3-0003uU-FI for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHId2-0002nm-Rk for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:17 -0400 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]:34198) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHId2-0002nZ-Lo for qemu-devel@nongnu.org; Fri, 11 May 2018 20:43:16 -0400 Received: by mail-pl0-x244.google.com with SMTP id ay10-v6so4144203plb.1 for ; Fri, 11 May 2018 17:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gTm+bwNj3Vmeeh+y4VTHeITGzCj9TBpSwD1rhJ16Jh8=; b=Ig/YOY99pm+Wc8mdRw6C3LZu+25h5ylsauWR8o5JGo2cB3yqmRKUd010lZbIbgedE9 M1pFmB1rs7AjiHJCcM2eVBRak9UdDj6wFFfLdmQOGTP//VmFXl7fN5xQRM8/mpnAexTz u5VdNxmWLd4nYRRLgOntkiyJW6iyA5KZh5jgA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gTm+bwNj3Vmeeh+y4VTHeITGzCj9TBpSwD1rhJ16Jh8=; b=P0VZIgonz952q3jpW7CMcAyZTZiZrYyaU+VIBzz8cxODGFW95yxIqzy4FQuhtV8Opg pOg52eLogfzWluGz6xV6DoXvZYbOd7Og3XbOTVdi7YdU5NeO4JBTC43c/ZV4lX35l8f7 D0bmK896ISMruxwfy4ePP25xhZeeJ+VqUXy3bFlqa0ceWu0s2hMIoaILN4JWQjISGfSB 8vSzBquFX+lSkfhAKr16mfFU69a/OZXIGXk7xdFiVRT2dLJR2OSPmdZpfdSVk8HklKM9 USyn9iI+zj0Ug0N6WkPuZhTkhM7ELiJN+NABn747XrpSM+rgUphgXU65UJBGSCdxm2Z8 +YBQ== X-Gm-Message-State: ALKqPwduXFl0efSvBXY+1RgSfQsOG/lP5L3LQWnAHZrPMW68KtR5Ajni HSHW92nqSkWMgNVJx4shdUC4YaRJOk0= X-Received: by 2002:a17:902:3e5:: with SMTP id d92-v6mr317292pld.104.1526085795381; Fri, 11 May 2018 17:43:15 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id k84-v6sm10756406pfh.93.2018.05.11.17.43.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 17:43:14 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 11 May 2018 17:42:45 -0700 Message-Id: <20180512004311.9299-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180512004311.9299-1-richard.henderson@linaro.org> References: <20180512004311.9299-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::244 Subject: [Qemu-devel] [PATCH v2 01/27] fpu/softfloat: int_to_float ensure r fully initialised X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée 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 Signed-off-by: Richard Henderson --- fpu/softfloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 Reviewed-by: Peter Maydell 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;