From 8a7ca31849a0f1a550e1a459fdf8d9dc1d8c1f41 Mon Sep 17 00:00:00 2001 From: Visual Ehrmanntraut <30368284+VisualEhrmanntraut@users.noreply.github.com> Date: Wed, 10 Jul 2024 09:22:30 +0300 Subject: [PATCH] Replace bzero with memset in sep-sim.c as well Signed-off-by: Visual Ehrmanntraut <30368284+VisualEhrmanntraut@users.noreply.github.com> --- hw/arm/apple-silicon/sep-sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/apple-silicon/sep-sim.c b/hw/arm/apple-silicon/sep-sim.c index 3406aee7252..80467e27775 100644 --- a/hw/arm/apple-silicon/sep-sim.c +++ b/hw/arm/apple-silicon/sep-sim.c @@ -376,7 +376,7 @@ static void apple_sep_sim_handle_control_msg(AppleSEPSimState *s, uint16_t val16 = 0; asn1_write_value(art, "Info.Counter", &val16, sizeof(val16)); char byte0x20[32]; - bzero(byte0x20, sizeof(byte0x20)); + memset(byte0x20, 0, sizeof(byte0x20)); asn1_write_value(art, "Info.ManifestHash", byte0x20, 20); asn1_write_value(art, "Info.SleepHash", byte0x20, 20); asn1_write_value(art, "Info.Nonce", byte0x20, 0); @@ -620,7 +620,7 @@ static void apple_sep_sim_handle_keystore_msg(AppleSEPSimState *s, const KeystoreIPCHeader *msg_hdr = (KeystoreIPCHeader *)msg_buf; #if 0 char fn[128]; - bzero(fn, sizeof(fn)); + memset(fn, 0, sizeof(fn)); snprintf(fn, sizeof(fn), "/Users/visual/Downloads/SKSMessages/0x%02X_%lld.bin", msg_code, msg_hdr->time_msecs); g_file_set_contents(fn, (gchar *)msg_buf, msg->size, NULL);