)]}'
{
  "commit": "9ef2306d37c76c380c01d7287e20895fbbc4de56",
  "tree": "685c09617dc536b41b272ff830069b6957809135",
  "parents": [
    "4262467a57837aa5de0a6283340868dd06d1dfe7"
  ],
  "author": {
    "name": "Tor Jeremiassen CA",
    "email": "torerik@google.com",
    "time": "Fri Nov 13 08:16:52 2026 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Fri Nov 13 08:17:31 2026 -0800"
  },
  "message": "Clamp out-of-range vstart CSR writes to zero in mpact_riscv.\n\nGuest writes to the RISC-V vector `vstart` CSR previously bypassed WARL bounds checking in `RiscVVstart::Write`, forwarding the raw 32-bit value directly to `RiscVVectorState::set_vstart(int)`. Writing a value outside `[0, VLEN)` could sign-narrow to a negative integer or exceed the maximum element index across an 8-register vector group, causing subsequent vector instructions to compute an out-of-bounds register index in `RV32VectorDestinationOperand::CopyDataBuffer`.\n\nEnforce the RISC-V Vector Extension WARL specification on `vstart` CSR writes by comparing the written value against the vector register bit length (`VLEN`) and clamping out-of-range writes (`\u003e\u003d VLEN`) to `0`.\n\nPiperOrigin-RevId: 1021049024\nChange-Id: I6c1f60e35c6a16a72fdac522d4f6b4fce3c57c05\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c9d656150c14a17efc3fdd010bcf6f1a60bfaeef",
      "old_mode": 33188,
      "old_path": "riscv/riscv_vector_state.cc",
      "new_id": "168eaaf61f05b3e41062ef39c10d9d61d605c337",
      "new_mode": 33188,
      "new_path": "riscv/riscv_vector_state.cc"
    },
    {
      "type": "modify",
      "old_id": "4a911f9a96c7a65f21a52b592c3a0a4827364d88",
      "old_mode": 33188,
      "old_path": "riscv/test/riscv_vector_state_test.cc",
      "new_id": "32c921515a6683a0688484a7b0bc209698195cab",
      "new_mode": 33188,
      "new_path": "riscv/test/riscv_vector_state_test.cc"
    },
    {
      "type": "modify",
      "old_id": "b99893b06573496f1421078cfd6f7a405dd8631a",
      "old_mode": 33188,
      "old_path": "riscv/test/riscv_vector_unary_instructions_test.cc",
      "new_id": "095ad546209dea8de17b369ce99f9bc4245b4eda",
      "new_mode": 33188,
      "new_path": "riscv/test/riscv_vector_unary_instructions_test.cc"
    }
  ]
}
