[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 20/26] plugins: update lockstep to use g_memdup2
From: |
Alex Bennée |
Subject: |
[PATCH 20/26] plugins: update lockstep to use g_memdup2 |
Date: |
Fri, 23 Jun 2023 13:20:54 +0100 |
The old g_memdup is deprecated, use the replacement.
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 10/26] tests/docker: add test-fuzz, (continued)
- [PATCH 10/26] tests/docker: add test-fuzz, Alex Bennée, 2023/06/23
- [PATCH 09/26] tests/qtests: clean-up and fix leak in generic_fuzz, Alex Bennée, 2023/06/23
- [PATCH 16/26] tests/docker: convert riscv64-cross to lcitool, Alex Bennée, 2023/06/23
- [PATCH 11/26] Makefile: add lcitool-refresh to UNCHECKED_GOALS, Alex Bennée, 2023/06/23
- [PATCH 13/26] tests/lcitool: Bump fedora container versions, Alex Bennée, 2023/06/23
- [PATCH 19/26] plugins: fix memory leak while parsing options, Alex Bennée, 2023/06/23
- [PATCH 24/26] docs/devel/qom.rst: Correct code style, Alex Bennée, 2023/06/23
- [PATCH 22/26] include/migration: mark vmstate_register() as a legacy function, Alex Bennée, 2023/06/23
- [PATCH 21/26] docs/devel: add some front matter to the devel index, Alex Bennée, 2023/06/23
- [PATCH 20/26] plugins: update lockstep to use g_memdup2,
Alex Bennée <=
- [PATCH 23/26] include/hw/qdev-core: fixup kerneldoc annotations, Alex Bennée, 2023/06/23
- [PATCH 17/26] tests/avocado: update firmware to enable sbsa-ref/max, Alex Bennée, 2023/06/23
- [PATCH 26/26] docs/devel: introduce some key concepts for QOM development, Alex Bennée, 2023/06/23
- [PATCH 18/26] plugins: force slow path when plugins instrument memory ops, Alex Bennée, 2023/06/23
- [PATCH 25/26] docs/devel: split qom-api reference into new file, Alex Bennée, 2023/06/23