From patchwork Mon Jul 3 13:44:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 698691 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp1761118wrs; Mon, 3 Jul 2023 06:50:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ykNeBtgYqjkTG1jeJKeVZOvjBsO5ffSnsOa66Kzurc9b7hrYL+1LayC5BC3Da6+WxJwbU X-Received: by 2002:a05:620a:40d6:b0:765:3ab9:df8d with SMTP id g22-20020a05620a40d600b007653ab9df8dmr12403865qko.32.1688392258911; Mon, 03 Jul 2023 06:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688392258; cv=none; d=google.com; s=arc-20160816; b=PLwk5lMVySfxMTYW8Y8KdYHU1OyYZTWjWE2M+fYGshFYcweRxGbIMeuCpgXj80XftO zRd63XHL8Z/JiXiFgIuja8AYYSepiPODyQ72s9VmXX/aSHCKLDrSMh0SxmPwupIXUkz3 EiWjbLt1VpIkea5bT0kV8JgYlwyNHci69FKRorzBiP1lASWyqNed9RK9YATaqoW0zrkO jvRWSClRvPKUYb1THkEj5PfNaN64FSAAvPOhbv90ecIFP0jmWK7N438zM6Pp9oxEvM+8 tlWeLZ61fN086Czfgt15RDZJDuiPQQ58CtRWygy0FGidpz/MhB7ShWuva25bPOfmxGwi UUHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LKf4Hmc0LoALYt5gF/daH2iR5ELuErLCAXXDVmfzwLI=; fh=ZwXsvvL/nhd+Dy/uiMZ9/V2BSec0K8VCXdxuIltiAz0=; b=0V0ETn0vVp5CGtpLc/M9H5v0u4aCd8o75shb63EK4piJThtvYcdHP5xsU0s9GBhiSz inJtkC5nVTvPnUCgdxOgFb+mIpsel9hS+clJ0XSs9kF/Utdv4WJy+ln/TtGcnis69+Hf jPt716aPEay7wRrOiOElwFTrLRF2W9LhBFXUDOpTLQS6GD+JAdN2/NbJWqDA7Ju2XoUD EqRQgis6kNueJgigFbL4TD5bdDTsylYXHataRhq+pvHVW6nu66cdtgFmkxVVhujBzKAS iPh4joKEn1N/duObxP9shgXQXAdV2PkbIdrrDnFtvdOh6tZfHeUOEfL6pA3rdtylXoPW Tj3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C8Yloh7H; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v15-20020a05620a440f00b0076719299db2si9887707qkp.571.2023.07.03.06.50.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jul 2023 06:50:58 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C8Yloh7H; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGJrM-0007xP-MJ; Mon, 03 Jul 2023 09:44:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGJrA-0007a6-Lk for qemu-devel@nongnu.org; Mon, 03 Jul 2023 09:44:44 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGJr3-0005j7-Pc for qemu-devel@nongnu.org; Mon, 03 Jul 2023 09:44:42 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-31434226a2eso2173446f8f.1 for ; Mon, 03 Jul 2023 06:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688391876; x=1690983876; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LKf4Hmc0LoALYt5gF/daH2iR5ELuErLCAXXDVmfzwLI=; b=C8Yloh7HfS9kwwuB9RSijUKO3Qja1RNkQfSB3egVPGBct8nlLfWJ8nKpcMAHPU2KP1 iSvU2+O0L8opaVxfXV0frCcq3jTTgiMNUk+bxL9e8UHjbEHDRq0j4EHmYxpyceaqacO+ mHT/dPgODtslOiLaY/cNMeRbpHFn+M1UXEPq6xpvO+JEkla8jMytAv2/T1ZsVNS51hQx csy0b8/5FcePfwej0LVUZNWaY/qkTXyy27V86OZ0QJ1cjEPt/P1SarJ7kPPeRt13dHaM CZ9cXOABKFqHGBHEyFwP1MxEbLM2bslyGZg0fetZO7a3prklY3F/UA6AceN7oMdG0nd8 asFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688391876; x=1690983876; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LKf4Hmc0LoALYt5gF/daH2iR5ELuErLCAXXDVmfzwLI=; b=SLgtu7fM9+/jZ0oA4moRWest4/MuSVHcQeKJ7Y3Aa5p2YizU6MpskOsEXNxYoa+Y5z C1uKOdzorX5dq1U8Zk/9lMCTgM3IdcazOd7fs4jp3gi6Aags5JaVnpn7AQnpPDFhK75e h9LGIWv7OKR15LGQZDU0rPdhOpFP1eqycF7VOgFzQCztmMNnyDWNRv0r5PL2cTFRBibF JbuOUPUTrFEWJY2Z2O9Q7+nnbsJmMx7Fq+WrfCLQfxsHwO+ffO1sZud0rQ8BXTAdhqSc ibZIahULIO4tGJDxHDje0LBHyQqwjVW6WN+sAOTytt/gv+qKIVyE0Q2I77KVbGMr+unm YZJg== X-Gm-Message-State: ABy/qLYxM46SX+AeU9YDLZr/NFg6pSKc9zybHk+vt8grYZD0rO6tKcFw vtgTpgFzWZZMHs3+lMcRvi5aLA== X-Received: by 2002:a5d:4f08:0:b0:313:dfa3:4f7b with SMTP id c8-20020a5d4f08000000b00313dfa34f7bmr12893609wru.20.1688391876524; Mon, 03 Jul 2023 06:44:36 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id v1-20020adfe281000000b00311299df211sm25652592wri.77.2023.07.03.06.44.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 06:44:35 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 541691FFCB; Mon, 3 Jul 2023 14:44:30 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: richard.henderson@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Alexandre Iooss , Mahmoud Mandour Subject: [PULL 21/38] plugins: update lockstep to use g_memdup2 Date: Mon, 3 Jul 2023 14:44:10 +0100 Message-Id: <20230703134427.1389440-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230703134427.1389440-1-alex.bennee@linaro.org> References: <20230703134427.1389440-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The old g_memdup is deprecated, use the replacement. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20230630180423.558337-22-alex.bennee@linaro.org> diff --git a/contrib/plugins/lockstep.c b/contrib/plugins/lockstep.c index e36f0b9562..3614c3564c 100644 --- a/contrib/plugins/lockstep.c +++ b/contrib/plugins/lockstep.c @@ -130,7 +130,7 @@ static void report_divergance(ExecState *us, ExecState *them) } } divergence_log = g_slist_prepend(divergence_log, - g_memdup(&divrec, sizeof(divrec))); + g_memdup2(&divrec, sizeof(divrec))); /* Output short log entry of going out of sync... */ if (verbose || divrec.distance == 1 || diverged) {