Skip to content

Commit

Permalink
Fixed LD1W (into ZA, 32-bit) buffer overflow error.
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnWilkinson committed Nov 8, 2024
1 parent 5945bae commit e15f354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/arch/aarch64/Instruction_execute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3632,7 +3632,7 @@ void Instruction::execute() {
for (int i = 0; i < partition_num; i++) {
const uint32_t* row = sourceValues_[i].getAsVector<uint32_t>();
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];
Expand Down

0 comments on commit e15f354

Please sign in to comment.