[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 19/26] plugins: update lockstep to use g_memdup2
From: |
Alex Bennée |
Subject: |
[PATCH v2 19/26] plugins: update lockstep to use g_memdup2 |
Date: |
Mon, 26 Jun 2023 22:59:19 +0100 |
The old g_memdup is deprecated, use the replacement.
Message-Id: <20230623122100.1640995-21-alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
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) {
--
2.39.2
- [PATCH v2 09/26] tests/docker: add test-fuzz, (continued)
- [PATCH v2 09/26] tests/docker: add test-fuzz, Alex Bennée, 2023/06/26
- [PATCH v2 11/26] tests/lcitool: update to latest version, Alex Bennée, 2023/06/26
- [PATCH v2 04/26] docs/devel: remind developers to run CI container pipeline when updating images, Alex Bennée, 2023/06/26
- [PATCH v2 06/26] qemu-keymap: properly check return from xkb_keymap_mod_get_index, Alex Bennée, 2023/06/26
- [PATCH v2 10/26] Makefile: add lcitool-refresh to UNCHECKED_GOALS, Alex Bennée, 2023/06/26
- [PATCH v2 14/26] tests/lcitool: introduce qemu-minimal, Alex Bennée, 2023/06/26
- [PATCH v2 07/26] scripts/oss-fuzz: add a suppression for keymap, Alex Bennée, 2023/06/26
- [PATCH v2 12/26] tests/lcitool: Bump fedora container versions, Alex Bennée, 2023/06/26
- [PATCH v2 19/26] plugins: update lockstep to use g_memdup2,
Alex Bennée <=
- [PATCH v2 16/26] tests/avocado: update firmware to enable sbsa-ref/max, Alex Bennée, 2023/06/26
- [PATCH v2 15/26] tests/docker: convert riscv64-cross to lcitool, Alex Bennée, 2023/06/26
- [PATCH v2 05/26] tests/tcg: add mechanism to handle plugin arguments, Alex Bennée, 2023/06/26
- [PATCH v2 13/26] tests/lcitool: add an explicit gcc-native package, Alex Bennée, 2023/06/26
- [PATCH v2 21/26] include/migration: mark vmstate_register() as a legacy function, Alex Bennée, 2023/06/26
- [PATCH v2 24/26] docs/devel: split qom-api reference into new file, Alex Bennée, 2023/06/26
- [PATCH v2 25/26] docs/devel: introduce some key concepts for QOM development, Alex Bennée, 2023/06/26
- [PATCH v2 22/26] include/hw/qdev-core: fixup kerneldoc annotations, Alex Bennée, 2023/06/26
- [PATCH v2 23/26] docs/devel/qom.rst: Correct code style, Alex Bennée, 2023/06/26
- [PATCH v2 26/26] tests/plugin: Remove duplicate insn log from libinsn.so, Alex Bennée, 2023/06/26