From e15f354e889236dea417444cc9c0fe9d63e0cfd6 Mon Sep 17 00:00:00 2001 From: Finn Wilkinson Date: Fri, 8 Nov 2024 13:10:00 +0000 Subject: [PATCH] Fixed LD1W (into ZA, 32-bit) buffer overflow error. --- src/lib/arch/aarch64/Instruction_execute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/arch/aarch64/Instruction_execute.cc b/src/lib/arch/aarch64/Instruction_execute.cc index 8f222c11a..4021fab6d 100644 --- a/src/lib/arch/aarch64/Instruction_execute.cc +++ b/src/lib/arch/aarch64/Instruction_execute.cc @@ -3632,7 +3632,7 @@ void Instruction::execute() { for (int i = 0; i < partition_num; i++) { const uint32_t* row = sourceValues_[i].getAsVector(); uint32_t out[64] = {0}; - memcpy(out, row, partition_num * sizeof(uint64_t)); + memcpy(out, row, partition_num * sizeof(uint32_t)); uint64_t shifted_active = 1ull << ((i % 16) * 4); if (pg[i / 16] & shifted_active) { out[sliceNum] = data[i];