From patchwork Mon Jun 26 21:59:19 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: 696507 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3449390wrm; Mon, 26 Jun 2023 15:06:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5z1wUmrz2EkJ/pmKtCD4Od7K/73nENnVhysw8potY4T1f77Dihz06zqHSp2TY+3uEhrHlO X-Received: by 2002:ac8:5e53:0:b0:3f6:c609:e9da with SMTP id i19-20020ac85e53000000b003f6c609e9damr36901294qtx.44.1687817191595; Mon, 26 Jun 2023 15:06:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687817191; cv=none; d=google.com; s=arc-20160816; b=VuApFU9EOIACnscKuro5oy4IZY2wd417SNlKS9oXpygZqJmLiqIfAlSCeDOvGQpeyL iQXyuH/lu/gHS40s/jItSoK6LTrlTgEoKbefrhm8SP7CeQFmTOQJA9nNtQY5WiQJuQSY WGP9iqAozDVnUcG5aVqTYh3Me2ZT1EDX3VlfnofKHQ3H/E4hMDXHlT1//srYJXYzpF1M lw66ErVm1aoUsblo3BkJ8zn57oES+9/f/FmtRikrz1RnOso5Aa4ZLMfKqvAUR0HtQrdm ChoPd7bCBlosp9DKTH3tSnc25asKdodLfrKaVMpyQTyN1sKnScvPeYLkktkVpkKdW39A gqnA== 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=1/YdtjXXo0e3CzVmNtcCXnVaZZ7ekw+aGjDVemCbNnQ=; fh=sQEya64SXtq2IEsk3H77u01QQAMvGjGQGvqUW/mcVd0=; b=MAm2BSDJRS36BEF85n9SJkYdG/iMmtTFrxPdjPRq397Tcquvdmq1MOMBxxurP4hFni K/qF4+/LXzQMPG+CU7U2n3zuFPAvMFuRYf/F5UF/2q02wW1V9C4Hxwq+xtuXh+8Qnl5a uEwsb6/eynoTjrShJHpDDEqjbSvEGZdc14gLQtWK00fDyK6QcD/7HQxnHcoMzFcyhOYq xamf2Ab1m1YqrVarg2VfCf3LttK2XFV3Hiei8jk13+Vkd6rRcjXIg2QRW/tVOhqhe2Z/ Q6sqguaz7WLiZDXxogBD0LpFiEgMLsGpIZndiGjIchEIvqoV8FsFLfU/pWvv9lFWrjAi sj0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I7E8Pre1; 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 b20-20020a05622a021400b003ff18484bfdsi2373362qtx.525.2023.06.26.15.06.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2023 15:06:31 -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=I7E8Pre1; 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 1qDuFO-0002jo-2p; Mon, 26 Jun 2023 17:59:46 -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 1qDuFI-0002dn-Jh for qemu-devel@nongnu.org; Mon, 26 Jun 2023 17:59:40 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDuFD-0004u9-L6 for qemu-devel@nongnu.org; Mon, 26 Jun 2023 17:59:40 -0400 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-313e742a787so2019502f8f.1 for ; Mon, 26 Jun 2023 14:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687816774; x=1690408774; 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=1/YdtjXXo0e3CzVmNtcCXnVaZZ7ekw+aGjDVemCbNnQ=; b=I7E8Pre15es8TOJfJ8KyIvALf9qJfOa+MHJW9yHzib485/MFM1BgPQbkuC1mjnONcW aETVXRTWZFT/d1Ho5nVtAHDhLCNhBZwYGOLa4mMPzj994XDkAG7wc/V1JoNfNsODJiK8 OnygqkjnB5Tjeuj8jDhKqZX4CpXSmlAfN4SfHVXDrUD+qVh3LhL+sEBbEaF6N5JmRNiV LmK7THYimzxVLD1KUqIBqTIloLBMI0EjhaC2t52Mj1HvTmX+dwfc7/e6bL2qCB5ui0Hu IpYBijvSEgNZ82eYYs16WgBDCTL6Is1/swSAwTI3EH6O1FO5MydJplMm2ABzho+zs+G7 cktQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687816774; x=1690408774; 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=1/YdtjXXo0e3CzVmNtcCXnVaZZ7ekw+aGjDVemCbNnQ=; b=W86flBN44j3gbbrRoT0CAHVclH9EjiePdlQELlixmN9KjZGasnyzByW5548vQgWbBR c5a2mHxJU8/CJ8+f81v0kXjKeIVKNNd6Zo5enGntuqnCSeM9xmBQYEIzjzOPAxf/P00q H4HXqDXrpDsN7z1AE0EQxK1gSgAjE+wjwmBfGkFcKa3zSjmcOmZ+GYLvGz21snR6HvQb XfJiqGdQgqycfVSiE50d/Lw2qULXLm8wDYz7BRl9yZmOmR4qYTXz2Q8fe4aDpAkTLIxi ORphlCHJ6I/BNzaer0iJXYvZnzaKuD8aw0KwJY3TVolWBlN7c2iMNMrvWXCF29HoaAnj PKfQ== X-Gm-Message-State: AC+VfDyJZFBqHV+XWpJWvp0mo059roeX9Yi9EYvRqEAgkxoWnlvoXpld 2w/m/mHYg33+wqA6q+kLvlu0Dw== X-Received: by 2002:a5d:428e:0:b0:311:360e:ea3a with SMTP id k14-20020a5d428e000000b00311360eea3amr22828082wrq.34.1687816774274; Mon, 26 Jun 2023 14:59:34 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id s8-20020adff808000000b00313e23edbd5sm8053448wrp.102.2023.06.26.14.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 14:59:34 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 39F781FFBE; Mon, 26 Jun 2023 22:59:29 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Alexander Bulekov , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Juan Quintela , Alexandre Iooss , Thomas Huth , Marcel Apfelbaum , Leif Lindholm , Riku Voipio , Peter Maydell , Paolo Bonzini , Bandan Das , Leonardo Bras , Cleber Rosa , Richard Henderson , Beraldo Leal , =?utf-8?q?Alex_Benn=C3=A9e?= , Peter Xu , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Mahmoud Mandour , Stefan Hajnoczi , Yanan Wang , Eduardo Habkost , Bin Meng , qemu-arm@nongnu.org, Wainer dos Santos Moschetta , Darren Kenny , Radoslaw Biernacki , Marcin Juszkiewicz , Qiuhao Li , Laurent Vivier Subject: [PATCH v2 19/26] plugins: update lockstep to use g_memdup2 Date: Mon, 26 Jun 2023 22:59:19 +0100 Message-Id: <20230626215926.2522656-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230626215926.2522656-1-alex.bennee@linaro.org> References: <20230626215926.2522656-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.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. Message-Id: <20230623122100.1640995-21-alex.bennee@linaro.org> Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée --- contrib/plugins/lockstep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {