)]}'
{
  "commit": "6de9ac520d7750a8f6fdc6a93fa0f0d17a6a3662",
  "tree": "8ca866b27f92704a3bd79194d771e307b2b55056",
  "parents": [
    "b6bbb62f92f7298da92f79edbdf06e3ce4af225f"
  ],
  "author": {
    "name": "Hao Li",
    "email": "hao.x.li@intel.com",
    "time": "Sun Oct 18 20:37:33 2026 -0700"
  },
  "committer": {
    "name": "dawn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "dawn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Sun Oct 18 20:37:33 2026 -0700"
  },
  "message": "Fix use-after-free for empty buffer/texture copy workarounds\n\nEmpty buffer-texture copies (zero-sized copy extents) skipped command\nrecording within certain workaround paths (e.g., blit-to-depth/stencil,\noversized-row split). Because mTopLevelBuffers and mTopLevelTextures\nheld raw pointers, and the only Ref keeping them alive was the recorded\ncommand, skipping recording left these pointers dangling, causing a UAF\nin QueueBase::ValidateSubmit.\n\nAdd an early-out for empty copies in APICopyBufferToTexture,\nAPICopyTextureToBuffer, and APICopyTextureToTexture. They now record the\nplain copy command and return before any workaround runs.\n- Add DAWN_CHECK(!copyExtent.IsEmpty()) to workarounds as a release-mode\n  backstop.\n- Add regression tests for empty B2T and T2B copies.\n\nBug: 571648522\nChange-Id: I88bd7f82df6a27a39c65747eb49a768e4f00f13f\nReviewed-on: https://dawn-review.googlesource.com/c/dawn/+/350415\nCommit-Queue: Li, Hao X \u003chao.x.li@intel.com\u003e\nReviewed-by: Corentin Wallez \u003ccwallez@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8b0ab63756eaf0350124d692a75ba0b1657f1302",
      "old_mode": 33188,
      "old_path": "src/dawn/native/BlitBufferToDepthStencil.cpp",
      "new_id": "c15f427c41afd67a5a9604c27ff7714df6795d1d",
      "new_mode": 33188,
      "new_path": "src/dawn/native/BlitBufferToDepthStencil.cpp"
    },
    {
      "type": "modify",
      "old_id": "5037e0d81e8c0c935f5c5a538a4712273e3ccd52",
      "old_mode": 33188,
      "old_path": "src/dawn/native/BlitTextureToBuffer.cpp",
      "new_id": "6e470d22cc5308fc571bafca1422372f7a8365c2",
      "new_mode": 33188,
      "new_path": "src/dawn/native/BlitTextureToBuffer.cpp"
    },
    {
      "type": "modify",
      "old_id": "09fb755f40f2c3dee91c820e834ffd2a468aedde",
      "old_mode": 33188,
      "old_path": "src/dawn/native/BufferTextureCopyOversizedRow.cpp",
      "new_id": "238b1b18ce79a3c521576829091c09917ea52e4f",
      "new_mode": 33188,
      "new_path": "src/dawn/native/BufferTextureCopyOversizedRow.cpp"
    },
    {
      "type": "modify",
      "old_id": "31a056ad5688821dd1e0442204e9eedda3ef21fd",
      "old_mode": 33188,
      "old_path": "src/dawn/native/CommandEncoder.cpp",
      "new_id": "ddb4e129da046de21985a3af44fb66ced8968e53",
      "new_mode": 33188,
      "new_path": "src/dawn/native/CommandEncoder.cpp"
    },
    {
      "type": "modify",
      "old_id": "e774343db704b5379664f54a21955165b61dd6d1",
      "old_mode": 33188,
      "old_path": "src/dawn/tests/unittests/validation/CopyCommandsValidationTests.cpp",
      "new_id": "d90da9303cd0ada7e819690b937e77d055fd74b9",
      "new_mode": 33188,
      "new_path": "src/dawn/tests/unittests/validation/CopyCommandsValidationTests.cpp"
    }
  ]
}
