From ffc0d19a337bc4970fc5467ea0d1d6ffbf6dbb81 Mon Sep 17 00:00:00 2001 From: Alexis Ehret <08a@riseup.net> Date: Sat, 6 Feb 2021 18:14:42 +0100 Subject: [PATCH] Fix allocator sizeof operand mismatch librz/io/p/io_winedbg.c --- librz/io/p/io_winedbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librz/io/p/io_winedbg.c b/librz/io/p/io_winedbg.c index 56a094f0aa..83291fca1b 100644 --- a/librz/io/p/io_winedbg.c +++ b/librz/io/p/io_winedbg.c @@ -243,7 +243,7 @@ static char *__system(RzIO *io, RzIODesc *fd, const char *cmd) { eprintf("pid : show current process id\n"); } else if (!strncmp(cmd, "dr8", 3)) { struct winedbg_x86_32 r = regState(); - ut8 *arena = (ut8 *)calloc(3, sizeof(struct winedbg_x86_32)); + struct winedbg_x86_32 *arena = RZ_NEWS0(struct winedbg_x86_32, 3); if (arena) { rz_hex_bin2str((ut8 *)&r, sizeof(r), (char *)arena); return (char *)arena;