)]}'
{
  "commit": "0fd61db6ac2a223a0b9a328ecd401bdd48ddf00e",
  "tree": "a6586d23a8d5f0fb7b4b873469ff6100decc8431",
  "parents": [
    "01bc0b2ff97d40daf325587d07dda5344da7a040"
  ],
  "author": {
    "name": "Chris Frantz",
    "email": "cfrantz@google.com",
    "time": "Tue Jun 09 13:56:55 2026 -0700"
  },
  "committer": {
    "name": "JesseChambers",
    "email": "145486573+JesseMelon@users.noreply.github.com",
    "time": "Wed Jun 10 11:35:16 2026 -0400"
  },
  "message": "ast10x0/peripherals/smc: Fix panic paths to pass no_panics tests\n\nEliminate potential panic vectors in the SMC driver and debug utilities\nto allow compile-time verification to pass:\n- Replaced variable array indexing with match-based helpers for\n  `flash_window_base` and `normal_read_ctrl` in `controller.rs`.\n- Refactored `spi_read_data` and `spi_write_data` to use safe chunks\n  instead of manual slicing/indexing.\n- Replaced divisions in `run_timing_sweep` and `spi_freq_div` with a\n  lookup table and multiplication, respectively, to avoid division-by-zero\n  panic paths.\n- Avoided possible underflow in `poll_blocking_dma_completion` by\n  checking the timeout before decrementing.\n- Simplified `dump_smc_read` in `target_debug.rs` to use `chunks_exact`\n  without `unwrap()`.\n- Avoided overflow panics in `dump_smc_register` and `get_mid_point_of_longest_one`.\n\nTAG\u003dagy\nCONV\u003d9d66bdb8-5246-47e2-b9b4-6f032c6a9480\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5f8139f0481a4e1c83fd5b06e907f750464f9817",
      "old_mode": 33188,
      "old_path": "target/ast10x0/peripherals/smc/controller.rs",
      "new_id": "eaf74deaf0dd4e45646782983f019f069f691b6d",
      "new_mode": 33188,
      "new_path": "target/ast10x0/peripherals/smc/controller.rs"
    },
    {
      "type": "modify",
      "old_id": "6e21996a8dc01235dd1538ddc655893a8983f69c",
      "old_mode": 33188,
      "old_path": "target/ast10x0/peripherals/smc/helpers.rs",
      "new_id": "6328f0fc2e6db76c4b8d5e83e117bc338bab58f4",
      "new_mode": 33188,
      "new_path": "target/ast10x0/peripherals/smc/helpers.rs"
    },
    {
      "type": "modify",
      "old_id": "38e7ee8e3958c7b570c5b533a1f41f9a0e337a70",
      "old_mode": 33188,
      "old_path": "target/ast10x0/tests/smc/target_debug.rs",
      "new_id": "93b9697a923e05e4ad837be2e878f6470fafc1a9",
      "new_mode": 33188,
      "new_path": "target/ast10x0/tests/smc/target_debug.rs"
    }
  ]
}
