)]}'
{
  "commit": "7a6384e497c5a76e8293e61fd45c7bb126b45898",
  "tree": "e16eea71212370195f8f6e8e3e1e1b9c6bd63c50",
  "parents": [
    "cea2fe750eafce731f63ca1db440d7fea2c2e2e2"
  ],
  "author": {
    "name": "Xinhao Yuan",
    "email": "xinhaoyuan@google.com",
    "time": "Mon Oct 19 21:13:24 2026"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Oct 19 21:13:57 2026"
  },
  "message": "Keep `weighted_distribution_` in sync with `records_` when pruning all-zero weights.\n\nWhen all corpus inputs have weight zero, `WeightedDistribution::RemoveRandomWeightedSubset` removes every entry from `weighted_distribution_` before returning `subset_to_remove`. `Corpus::Prune` then erases one index from `subset_to_remove` so `records_` retains one random input, leaving `weighted_distribution_` empty and causing check failures on subsequent corpus operations.\n\nRestore one zero weight in `weighted_distribution_` when keeping that fallback input, and add a unit test covering `Corpus::Prune` with all-zero weights.\n\nPiperOrigin-RevId: 1002585725\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5c194b5b53c96079d70a04b2c309bd1e309e4db1",
      "old_mode": 33188,
      "old_path": "centipede/corpus.cc",
      "new_id": "0b216f47d023a72f61c44e80c1327203517e15eb",
      "new_mode": 33188,
      "new_path": "centipede/corpus.cc"
    },
    {
      "type": "modify",
      "old_id": "46e4d4e37366c9f2471186ae7263620050860efa",
      "old_mode": 33188,
      "old_path": "centipede/corpus_test.cc",
      "new_id": "5187a6078d1bbb6363fa98412a61e01896b1bdf0",
      "new_mode": 33188,
      "new_path": "centipede/corpus_test.cc"
    }
  ]
}
