From b51d5966d413216ab695fd07324f0c9cd4a363b9 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Wed, 7 May 2025 01:45:46 -0700 Subject: [PATCH] [Zion] Zero-out thread fx_data_ on creation. --- zion/object/thread.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zion/object/thread.cpp b/zion/object/thread.cpp index a1a1d47..fea38f9 100644 --- a/zion/object/thread.cpp +++ b/zion/object/thread.cpp @@ -51,6 +51,9 @@ Thread::Thread(Process& proc, uint64_t tid) if (reinterpret_cast(fx_data_) & 0x8) { fx_data_ += 8; } + for (uint16_t i = 0; i < 512; i++) { + fx_data_[i] = 0; + } } uint64_t Thread::pid() const { return process_.id(); }