)]}'
{
  "commit": "9aae5a6ad69d124762d7913a71f3d12873a58ecd",
  "tree": "fafd879d896235882b23d8d62925eac862ac7b9f",
  "parents": [
    "37e52ff6805565e0988be430f920c7d8650bbb73"
  ],
  "author": {
    "name": "Fabian Meumertzheim",
    "email": "fabian@meumertzhe.im",
    "time": "Thu Aug 27 01:17:49 2026 -0700"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Thu Aug 27 01:19:33 2026 -0700"
  },
  "message": "Harden GrpcCacheClient against misbehaving servers (https://github.com/bazelbuild/bazel/pull/30819)\n\n### Description\nFail the download early when the server sends more bytes than expected (e.g. because it ignored `read_offset` on a retry) and fail if the received size doesn\u0027t match the expected size even with `--noremote_verify_downloads`.\n\n### Motivation\nWork towards #30780\n\n### Build API Changes\n\nNo\n\n### Checklist\n\n- [x] I have added tests for the new use cases (if any).\n- [ ] I have updated the documentation (if applicable).\n\n### Release Notes\n\nRELNOTES: None\n\nCloses #30819.\n\nPiperOrigin-RevId: 971795439\nChange-Id: I0e8eb0d2c22b29d234dbc07a6d38aaf9c25a9f13\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bfde6d9d85c40771b53845ac177de54298dfc988",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/remote/GrpcCacheClient.java",
      "new_id": "5807b52549463af4016ccbf9e485fcca9d7ec77e",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/remote/GrpcCacheClient.java"
    },
    {
      "type": "modify",
      "old_id": "f0316502e752511d68111b6fb01fd1c6b961013b",
      "old_mode": 33188,
      "old_path": "src/main/java/com/google/devtools/build/lib/remote/common/OutputDigestMismatchException.java",
      "new_id": "82b5fe17238eeee12c978a648662853b4e9868b2",
      "new_mode": 33188,
      "new_path": "src/main/java/com/google/devtools/build/lib/remote/common/OutputDigestMismatchException.java"
    },
    {
      "type": "modify",
      "old_id": "bfa66e858142fc541a729ac87ceeab530871fc69",
      "old_mode": 33188,
      "old_path": "src/test/java/com/google/devtools/build/lib/remote/GrpcCacheClientTest.java",
      "new_id": "03ee7c99f4dd496f68eb3b674e8bdc0b5a5b8c47",
      "new_mode": 33188,
      "new_path": "src/test/java/com/google/devtools/build/lib/remote/GrpcCacheClientTest.java"
    }
  ]
}
